-
Notifications
You must be signed in to change notification settings - Fork 0
07 inventory system
The KLibrary Inventory System replaces traditional, event-heavy Bukkit inventory handling with a modern, modular, and state-driven GUI framework designed exclusively for Paper servers.
To ensure complete clarity and a professional developer experience, the documentation for this system is split into multiple focused topics. Please read them in order to understand the full capabilities of the API.
Learn the core architectural rules (Context vs Provider vs View) and how to construct, register, and display your first GUI to a player.
Understand the prioritized rendering hierarchy (View vs Provider levels) and how to safely inject built-in UI controls like BackButton and CloseButton.
Discover how to build scrolling item lists without recreating inventories using KLibrary's state-driven context engine and built-in NavigationButton implementations.
Learn the distinct differences between a state update (update()) and a view transition (openReplace()), and how to hook into the global auto-refresh ticker.
Explore the execution flow of a player interaction. Learn how the framework intercepts, secures, and routes clicks directly to stateless Button dispatchers.
Find out how to simulate smooth visual transitions—like slot-by-slot reveals and loading screens—using timed update cycles rather than disrupting the client UI.
Master optimization strategies. Learn how to perform targeted slot updates, avoid full rebuilds, and throttle events to keep your menus highly performant on large servers.