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
FieldsFields inherited from class xyz.xenondevs.invui.gui.AbstractGui.AbstractBuilder
background, frozen, ignoreObscuredInventorySlots, modifiers, structure -
Constructor Summary
Constructors -
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.protected voidapplyModifiers(@NotNull TabGui gui) Applies theAbstractGui.AbstractBuilder.modifiersto the givenAbstractGui.clone()Clones the Gui Builder.@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 class xyz.xenondevs.invui.gui.AbstractGui.AbstractBuilder
addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredient, addIngredientElementSupplier, addModifier, setBackground, setBackground, setFrozen, setIgnoreObscuredInventorySlots, setModifiers, setStructure, setStructure, setStructureMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.BuilderSets the tabs of theTabGui. Individual tabs can be null to disable them, but there must at least one tab.- Specified by:
setTabsin interfaceTabGui.Builder- Parameters:
tabs- The tabs of theTabGui.- Returns:
- This
Gui Builder.
-
addTab
Description copied from interface:TabGui.BuilderAdds a tab to theTabGui. Individual tabs can be null to disable them, but there must at least one tab.- Specified by:
addTabin 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.BuilderAdds a tab change handler to theTabGui.- Specified by:
addTabChangeHandlerin 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.BuilderSets the tab change handlers of theTabGui.- Specified by:
setTabChangeHandlersin interfaceTabGui.Builder- Parameters:
handlers- The tab change handlers of theTabGui.- Returns:
- This
Gui Builder.
-
applyModifiers
Description copied from class:AbstractGui.AbstractBuilderApplies theAbstractGui.AbstractBuilder.modifiersto the givenAbstractGui.- Overrides:
applyModifiersin classAbstractGui.AbstractBuilder<TabGui,TabGui.Builder> - Parameters:
gui- TheAbstractGuito apply the modifiers to
-
clone
Description copied from interface:Gui.BuilderClones the Gui Builder.- Specified by:
clonein interfaceGui.Builder<TabGui,TabGui.Builder> - Overrides:
clonein classAbstractGui.AbstractBuilder<TabGui,TabGui.Builder> - Returns:
- The cloned Gui Builder
-