Package dev.triumphteam.gui.builder.gui
Class ScrollingBuilder
java.lang.Object
dev.triumphteam.gui.builder.gui.BaseGuiBuilder<ScrollingGui,ScrollingBuilder>
dev.triumphteam.gui.builder.gui.ScrollingBuilder
The simple GUI builder is used for creating a
ScrollingGui that uses Component for title
TODO This class needs more work to remove the redundant pageSize since it's the same as the paginated builder-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ScrollingGuicreate()Creates a newScrollingGui@NotNull ScrollingBuilderpageSize(int pageSize) Sets the desirable page size, most of the times this isn't needed@NotNull ScrollingBuilderscrollType(@NotNull ScrollType scrollType) Sets theScrollTypeto be usedMethods inherited from class dev.triumphteam.gui.builder.gui.BaseGuiBuilder
apply, disableAllInteractions, disableItemDrop, disableItemPlace, disableItemSwap, disableItemTake, disableOtherActions, enableAllInteractions, enableItemDrop, enableItemPlace, enableItemSwap, enableItemTake, enableOtherActions, getConsumer, getModifiers, getRows, getTitle, rows, title
-
Constructor Details
-
ScrollingBuilder
Main constructor- Parameters:
scrollType- TheScrollTypeto default to
-
-
Method Details
-
scrollType
@NotNull @Contract("_ -> this") public @NotNull ScrollingBuilder scrollType(@NotNull @NotNull ScrollType scrollType) Sets theScrollTypeto be used- Parameters:
scrollType- Either horizontal or vertical scrolling- Returns:
- The current builder
-
pageSize
Sets the desirable page size, most of the times this isn't needed- Parameters:
pageSize- The amount of free slots that page items should occupy- Returns:
- The current builder
-
create
Creates a newScrollingGui- Specified by:
createin classBaseGuiBuilder<ScrollingGui,ScrollingBuilder> - Returns:
- A new
ScrollingGui
-