Paginated Gui Builder
A PaginatedGuiBuilder is used to create a paginated GUI, allowing players to navigate through multiple pages of items. This builder provides functionality for setting up items, page navigation buttons, and customizing the look of each page.
Parameters
The base title of the paginated GUI.
The number of rows in the GUI.
The list of data to be displayed in the GUI, which will be paginated.
Functions
Sets a border around the inventory, filling the outermost slots with the specified item.
Sets a default item to fill the entire inventory.
Sets custom items for specific slots in the GUI.
Defines the button for navigating to the next page.
Increases the current page by 1, if it's not the last page.
Sets the current page to a specific page number, ensuring it's within valid bounds.
Specifies the slot for displaying the page indicator (e.g., "Page 1/5").
Defines the button for navigating to the previous page.
Decreases the current page by 1, if it is greater than 1.
Defines how to render each item in the list of data within the GUI.
Specifies the custom slots to be used in the GUI.
Sets a custom title formatter for the paginated GUI.