Package dev.triumphteam.gui.guis
Class Gui
java.lang.Object
dev.triumphteam.gui.guis.BaseGui
dev.triumphteam.gui.guis.Gui
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
Standard GUI implementation of
BaseGui-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Gui(int rows, @NotNull String title, @NotNull Set<InteractionModifier> interactionModifiers) Main constructor for the GUIDeprecated.In favor ofGui(GuiType, String, Set)Gui(@NotNull GuiType guiType, @NotNull String title, @NotNull Set<InteractionModifier> interactionModifiers) Alternative constructor that takes both aGuiTypeand a set ofInteractionModifierDeprecated.In favor ofGui(int, String, Set) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull SimpleBuildergui()Creates aSimpleBuilderwith CHEST as theGuiTypestatic @NotNull SimpleBuilderCreates aSimpleBuilderto build aGuistatic @NotNull PaginatedBuilderCreates aPaginatedBuilderto build aPaginatedGuistatic @NotNull ScrollingBuilderCreates aScrollingBuilderwith VERTICAL as theScrollTypestatic @NotNull ScrollingBuilderscrolling(@NotNull ScrollType scrollType) Creates aScrollingBuilderto build aScrollingGuistatic @NotNull StorageBuilderstorage()Creates aStorageBuilder.Methods inherited from class dev.triumphteam.gui.guis.BaseGui
addItem, addItem, addSlotAction, addSlotAction, allInteractionsDisabled, allowsOtherActions, canDropItems, canPlaceItems, canSwapItems, canTakeItems, close, close, disableAllInteractions, disableItemDrop, disableItemPlace, disableItemSwap, disableItemTake, disableOtherActions, enableAllInteractions, enableItemDrop, enableItemPlace, enableItemSwap, enableItemTake, enableOtherActions, getFiller, getGuiItem, getGuiItems, getInventory, getRows, getTitle, guiType, isUpdating, open, removeItem, removeItem, removeItem, removeItem, setCloseGuiAction, setDefaultClickAction, setDefaultTopClickAction, setDragAction, setInventory, setItem, setItem, setItem, setOpenGuiAction, setOutsideClickAction, setPlayerInventoryAction, setUpdating, title, update, updateItem, updateItem, updateItem, updateItem, updateTitle
-
Constructor Details
-
Gui
public Gui(int rows, @NotNull @NotNull String title, @NotNull @NotNull Set<InteractionModifier> interactionModifiers) Main constructor for the GUI- Parameters:
rows- The amount of rows the GUI should havetitle- The GUI's title usingStringinteractionModifiers- A set containing theInteractionModifierthis GUI should use- Since:
- 3.0.3
-
Gui
public Gui(@NotNull @NotNull GuiType guiType, @NotNull @NotNull String title, @NotNull @NotNull Set<InteractionModifier> interactionModifiers) Alternative constructor that takes both aGuiTypeand a set ofInteractionModifier- Parameters:
guiType- TheGuiTypeto be usedtitle- The GUI's title usingStringinteractionModifiers- A set containing theInteractionModifierthis GUI should use- Since:
- 3.0.3
-
Gui
Deprecated.In favor ofGui(int, String, Set)Old main constructor for the GUI- Parameters:
rows- The amount of rows the GUI should havetitle- The GUI's title
-
Gui
Deprecated.In favor ofGui(int, String, Set)Alternative constructor that defaults to 1 row- Parameters:
title- The GUI's title
-
Gui
Deprecated.In favor ofGui(GuiType, String, Set)Main constructor that takes aGuiTypeinstead of rows- Parameters:
guiType- TheGuiTypeto be usedtitle- The GUI's title
-
-
Method Details
-
gui
@NotNull @Contract("_ -> new") public static @NotNull SimpleBuilder gui(@NotNull @NotNull GuiType type) Creates aSimpleBuilderto build aGui- Parameters:
type- TheGuiTypeto be used- Returns:
- A
SimpleBuilder - Since:
- 3.0.0
-
gui
Creates aSimpleBuilderwith CHEST as theGuiType- Returns:
- A CHEST
SimpleBuilder - Since:
- 3.0.0
-
storage
Creates aStorageBuilder.- Returns:
- A CHEST
StorageBuilder. - Since:
- 3.0.0.
-
paginated
Creates aPaginatedBuilderto build aPaginatedGui- Returns:
- A
PaginatedBuilder - Since:
- 3.0.0
-
scrolling
@NotNull @Contract("_ -> new") public static @NotNull ScrollingBuilder scrolling(@NotNull @NotNull ScrollType scrollType) Creates aScrollingBuilderto build aScrollingGui- Parameters:
scrollType- TheScrollTypeto be used by the GUI- Returns:
- A
ScrollingBuilder - Since:
- 3.0.0
-
scrolling
Creates aScrollingBuilderwith VERTICAL as theScrollType- Returns:
- A vertical
SimpleBuilder - Since:
- 3.0.0
-
Gui(int, String, Set)