Package xyz.xenondevs.invui.gui
Class AbstractTabGui.AbstractBuilder
java.lang.Object
xyz.xenondevs.invui.gui.AbstractGui.AbstractBuilder<TabGui,TabGui.Builder>
xyz.xenondevs.invui.gui.AbstractTabGui.AbstractBuilder
- All Implemented Interfaces:
Cloneable
,Gui.Builder<TabGui,
,TabGui.Builder> TabGui.Builder
- Enclosing class:
AbstractTabGui
public abstract static class AbstractTabGui.AbstractBuilder
extends AbstractGui.AbstractBuilder<TabGui,TabGui.Builder>
implements TabGui.Builder
-
Nested Class Summary
Nested classes/interfaces inherited from interface xyz.xenondevs.invui.gui.Gui.Builder
Gui.Builder.Normal
-
Field Summary
Fields inherited from class xyz.xenondevs.invui.gui.AbstractGui.AbstractBuilder
background, frozen, ignoreObscuredInventorySlots, modifiers, structure
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull TabGui.Builder
Adds a tab to theTabGui
.@NotNull TabGui.Builder
addTabChangeHandler
(@NotNull BiConsumer<Integer, Integer> handler) Adds a tab change handler to theTabGui
.protected void
applyModifiers
(@NotNull TabGui gui) Applies theAbstractGui.AbstractBuilder.modifiers
to the givenAbstractGui
.clone()
Clones the Gui Builder.@NotNull TabGui.Builder
setTabChangeHandlers
(@NotNull List<@NotNull BiConsumer<Integer, Integer>> handlers) Sets the tab change handlers of theTabGui
.@NotNull TabGui.Builder
Sets the tabs of theTabGui
.Methods inherited from class xyz.xenondevs.invui.gui.AbstractGui.AbstractBuilder
addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredientElementSupplier, addModifier, setBackground, setBackground, setFrozen, setIgnoreObscuredInventorySlots, setModifiers, setStructure, setStructure, setStructure
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xyz.xenondevs.invui.gui.Gui.Builder
addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredientElementSupplier, addModifier, build, setBackground, setBackground, setFrozen, setIgnoreObscuredInventorySlots, setModifiers, setStructure, setStructure, setStructure
-
Field Details
-
tabs
-
tabChangeHandlers
-
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
setTabs
Description copied from interface:TabGui.Builder
Sets the tabs of theTabGui
. Individual tabs can be null to disable them, but there must at least one tab.- Specified by:
setTabs
in interfaceTabGui.Builder
- Parameters:
tabs
- The tabs of theTabGui
.- Returns:
- This
Gui Builder
.
-
addTab
Description copied from interface:TabGui.Builder
Adds a tab to theTabGui
. Individual tabs can be null to disable them, but there must at least one tab.- Specified by:
addTab
in interfaceTabGui.Builder
- Parameters:
tab
- The tab to add.- Returns:
- This
Gui Builder
.
-
addTabChangeHandler
public @NotNull TabGui.Builder addTabChangeHandler(@NotNull @NotNull BiConsumer<Integer, Integer> handler) Description copied from interface:TabGui.Builder
Adds a tab change handler to theTabGui
.- Specified by:
addTabChangeHandler
in interfaceTabGui.Builder
- Parameters:
handler
- The tab change handler to add.- Returns:
- This
Gui Builder
.
-
setTabChangeHandlers
public @NotNull TabGui.Builder setTabChangeHandlers(@NotNull @NotNull List<@NotNull BiConsumer<Integer, Integer>> handlers) Description copied from interface:TabGui.Builder
Sets the tab change handlers of theTabGui
.- Specified by:
setTabChangeHandlers
in interfaceTabGui.Builder
- Parameters:
handlers
- The tab change handlers of theTabGui
.- Returns:
- This
Gui Builder
.
-
applyModifiers
Description copied from class:AbstractGui.AbstractBuilder
Applies theAbstractGui.AbstractBuilder.modifiers
to the givenAbstractGui
.- Overrides:
applyModifiers
in classAbstractGui.AbstractBuilder<TabGui,
TabGui.Builder> - Parameters:
gui
- TheAbstractGui
to apply the modifiers to
-
clone
Description copied from interface:Gui.Builder
Clones the Gui Builder.- Specified by:
clone
in interfaceGui.Builder<TabGui,
TabGui.Builder> - Overrides:
clone
in classAbstractGui.AbstractBuilder<TabGui,
TabGui.Builder> - Returns:
- The cloned Gui Builder
-