Package xyz.xenondevs.invui.gui
Interface ScrollGui.Builder<C>
- Type Parameters:
C- The content type.
- All Superinterfaces:
Cloneable,Gui.Builder<ScrollGui<C>,ScrollGui.Builder<C>>
- All Known Implementing Classes:
AbstractScrollGui.AbstractBuilder
A
ScrollGui 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 ScrollGui.Builder<C> addContent(C content) Adds content to theScrollGui.@NotNull ScrollGui.Builder<C> addScrollHandler(@NotNull BiConsumer<Integer, Integer> handler) Adds a scroll handler to theScrollGui.@NotNull ScrollGui.Builder<C> setContent(@NotNull List<@NotNull C> content) Sets the content of theScrollGuifor all lines.@NotNull ScrollGui.Builder<C> setScrollHandlers(@NotNull List<@NotNull BiConsumer<Integer, Integer>> handlers) Adds content to theScrollGui.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 ScrollGui.Builder<C> setContent(@NotNull @NotNull List<@NotNull C> content) Sets the content of theScrollGuifor all lines.- Parameters:
content- The content to set.- Returns:
- This
Gui Builder.
-
addContent
Adds content to theScrollGui.- Parameters:
content- The content to add.- Returns:
- This
Gui Builder.
-
setScrollHandlers
@Contract("_ -> this") @NotNull @NotNull ScrollGui.Builder<C> setScrollHandlers(@NotNull @NotNull List<@NotNull BiConsumer<Integer, Integer>> handlers) Adds content to theScrollGui.- Parameters:
handlers- The content to add.- Returns:
- This
Gui Builder.
-
addScrollHandler
@Contract("_ -> this") @NotNull @NotNull ScrollGui.Builder<C> addScrollHandler(@NotNull @NotNull BiConsumer<Integer, Integer> handler) Adds a scroll handler to theScrollGui.- Parameters:
handler- The scroll handler to add.- Returns:
- This
Gui Builder.
-