Package xyz.xenondevs.invui.gui
Interface PagedGui.Builder<C>
- Type Parameters:
C
- The content type.
- All Superinterfaces:
Cloneable
,Gui.Builder<PagedGui<C>,
PagedGui.Builder<C>>
- All Known Implementing Classes:
AbstractPagedGui.AbstractBuilder
A
PagedGui
builder.-
Nested Class Summary
Nested classes/interfaces inherited from interface xyz.xenondevs.invui.gui.Gui.Builder
Gui.Builder.Normal
-
Method Summary
Modifier and TypeMethodDescription@NotNull PagedGui.Builder
<C> addContent
(C content) Adds content to thePagedGui
.@NotNull PagedGui.Builder
<C> addPageChangeHandler
(@NotNull BiConsumer<Integer, Integer> handler) Adds a page change handler to thePagedGui
.@NotNull PagedGui.Builder
<C> setContent
(@NotNull List<@NotNull C> content) Sets the content of thePagedGui
for all pages.@NotNull PagedGui.Builder
<C> setPageChangeHandlers
(@NotNull List<@NotNull BiConsumer<Integer, Integer>> handlers) Sets the page change handlers of thePagedGui
.Methods inherited from interface xyz.xenondevs.invui.gui.Gui.Builder
addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredientElementSupplier, addModifier, build, clone, setBackground, setBackground, setFrozen, setIgnoreObscuredInventorySlots, setModifiers, setStructure, setStructure, setStructure
-
Method Details
-
setContent
@Contract("_ -> this") @NotNull @NotNull PagedGui.Builder<C> setContent(@NotNull @NotNull List<@NotNull C> content) Sets the content of thePagedGui
for all pages.- Parameters:
content
- The content to set.- Returns:
- This
Gui Builder
.
-
addContent
Adds content to thePagedGui
.- Parameters:
content
- The content to add.- Returns:
- This
Gui Builder
.
-
setPageChangeHandlers
@Contract("_ -> this") @NotNull @NotNull PagedGui.Builder<C> setPageChangeHandlers(@NotNull @NotNull List<@NotNull BiConsumer<Integer, Integer>> handlers) Sets the page change handlers of thePagedGui
.- Parameters:
handlers
- The page change handlers to set.- Returns:
- This
Gui Builder
.
-
addPageChangeHandler
@Contract("_ -> this") @NotNull @NotNull PagedGui.Builder<C> addPageChangeHandler(@NotNull @NotNull BiConsumer<Integer, Integer> handler) Adds a page change handler to thePagedGui
.- Parameters:
handler
- The page change handler to add.- Returns:
- This
Gui Builder
.
-