Package xyz.xenondevs.invui.gui
Interface TabGui.Builder
- All Superinterfaces:
Cloneable,Gui.Builder<TabGui,TabGui.Builder>
- All Known Implementing Classes:
AbstractTabGui.AbstractBuilder
- Enclosing interface:
TabGui
A
TabGui 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 TabGui.BuilderAdds a tab to theTabGui.@NotNull TabGui.BuilderaddTabChangeHandler(@NotNull BiConsumer<Integer, Integer> handler) Adds a tab change handler to theTabGui.@NotNull TabGui.BuildersetTabChangeHandlers(@NotNull List<@NotNull BiConsumer<Integer, Integer>> handlers) Sets the tab change handlers of theTabGui.@NotNull TabGui.BuilderSets the tabs of theTabGui.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
-
setTabs
@Contract("_ -> this") @NotNull @NotNull TabGui.Builder setTabs(@NotNull @NotNull List<@Nullable Gui> tabs) Sets the tabs of theTabGui. Individual tabs can be null to disable them, but there must at least one tab.- Parameters:
tabs- The tabs of theTabGui.- Returns:
- This
Gui Builder.
-
addTab
Adds a tab to theTabGui. Individual tabs can be null to disable them, but there must at least one tab.- Parameters:
tab- The tab to add.- Returns:
- This
Gui Builder.
-
setTabChangeHandlers
@Contract("_ -> this") @NotNull @NotNull TabGui.Builder setTabChangeHandlers(@NotNull @NotNull List<@NotNull BiConsumer<Integer, Integer>> handlers) Sets the tab change handlers of theTabGui.- Parameters:
handlers- The tab change handlers of theTabGui.- Returns:
- This
Gui Builder.
-
addTabChangeHandler
@Contract("_ -> this") @NotNull @NotNull TabGui.Builder addTabChangeHandler(@NotNull @NotNull BiConsumer<Integer, Integer> handler) Adds a tab change handler to theTabGui.- Parameters:
handler- The tab change handler to add.- Returns:
- This
Gui Builder.
-