Paginated GUI
A class that provides paginated inventory GUI functionality with improved item management. It allows dynamic page navigation, slot management, and customization using PersistentDataContainer.
Since
1.0.0
Author
RiriFa
Parameters
The player who will view the GUI.
See also
Properties
Functions
Adds a single item to the existing item list.
Abstract method for building the inventory GUI. This method should be implemented by subclasses to define the layout and items of the GUI.
Updates the inventory to display items for the current page.
Gets the background material set for the inventory GUI.
Returns the inventory associated with this GUI.
Gets the current listener associated with this GUI.
Sets the background material for the inventory GUI.
Sets the number of items per page.
Sets a default button to display when there are no items.
Sets multiple items at once for the GUI. This replaces the existing item list.
Sets the listener for handling GUI events.
Sets the current page for the inventory.
Sets the buttons for page navigation.
Sets the items to be paginated.
Sets whether the global listener should be called on inventory events.
Sets the size of the inventory GUI.
Sets the slot positions for items.
Sets the title of the inventory GUI.
Sets the total number of pages. This method should be called after setting up items.
Indicates whether the global listener should be called on inventory events.