Package dev.triumphteam.gui.builder.gui
Class TypedGuiBuilder
java.lang.Object
dev.triumphteam.gui.builder.gui.BaseGuiBuilder<Gui,TypedGuiBuilder>
dev.triumphteam.gui.builder.gui.TypedGuiBuilder
The simple GUI builder is used for creating a
Gui-
Constructor Summary
ConstructorsConstructorDescriptionTypedGuiBuilder(@NotNull GuiType guiType) Main constructorTypedGuiBuilder(@NotNull GuiType guiType, @NotNull ChestGuiBuilder builder) -
Method Summary
Modifier and TypeMethodDescription@NotNull Guicreate()Creates a newGui@NotNull TypedGuiBuilderinventory(InventoryProvider.Typed inventoryProvider) @NotNull TypedGuiBuilderSets theGuiTypeto use on the GUI This method is unique to the simple GUIMethods inherited from class dev.triumphteam.gui.builder.gui.BaseGuiBuilder
apply, consumeBuilder, disableAllInteractions, disableItemDrop, disableItemPlace, disableItemSwap, disableItemTake, disableOtherActions, enableAllInteractions, enableItemDrop, enableItemPlace, enableItemSwap, enableItemTake, enableOtherActions, getConsumer, getModifiers, getTitle, title
-
Constructor Details
-
TypedGuiBuilder
Main constructor- Parameters:
guiType- TheGuiTypeto default to
-
TypedGuiBuilder
public TypedGuiBuilder(@NotNull @NotNull GuiType guiType, @NotNull @NotNull ChestGuiBuilder builder)
-
-
Method Details
-
type
@NotNull @Contract("_ -> this") public @NotNull TypedGuiBuilder type(@NotNull @NotNull GuiType guiType) Sets theGuiTypeto use on the GUI This method is unique to the simple GUI- Parameters:
guiType- TheGuiType- Returns:
- The current builder
-
inventory
@NotNull @Contract("_ -> this") public @NotNull TypedGuiBuilder inventory(@NotNull InventoryProvider.Typed inventoryProvider) -
create
Creates a newGui- Specified by:
createin classBaseGuiBuilder<Gui,TypedGuiBuilder> - Returns:
- A new
Gui
-