Package dev.triumphteam.gui.builder.gui
Class PaginatedBuilder
java.lang.Object
dev.triumphteam.gui.builder.gui.BaseGuiBuilder<PaginatedGui,PaginatedBuilder>
dev.triumphteam.gui.builder.gui.BaseChestGuiBuilder<PaginatedGui,PaginatedBuilder>
dev.triumphteam.gui.builder.gui.PaginatedBuilder
GUI builder for creating a
PaginatedGui-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull PaginatedGuicreate()Creates a newPaginatedGui@NotNull PaginatedBuilderpageSize(int pageSize) Sets the desirable page size, most of the time this isn't neededMethods inherited from class dev.triumphteam.gui.builder.gui.BaseChestGuiBuilder
createContainer, getInventoryProvider, getRows, inventory, rowsMethods inherited from class dev.triumphteam.gui.builder.gui.BaseGuiBuilder
apply, consumeBuilder, disableAllInteractions, disableItemDrop, disableItemPlace, disableItemSwap, disableItemTake, disableOtherActions, enableAllInteractions, enableItemDrop, enableItemPlace, enableItemSwap, enableItemTake, enableOtherActions, getConsumer, getModifiers, getTitle, title
-
Constructor Details
-
PaginatedBuilder
public PaginatedBuilder()
-
-
Method Details
-
pageSize
Sets the desirable page size, most of the time this isn't needed- Parameters:
pageSize- The amount of free slots that page items should occupy- Returns:
- The current builder
-
create
Creates a newPaginatedGui- Specified by:
createin classBaseGuiBuilder<PaginatedGui,PaginatedBuilder> - Returns:
- A new
PaginatedGui
-