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
ConstructorsConstructorDescriptionGui(@NotNull GuiContainer guiContainer, @NotNull Set<InteractionModifier> interactionModifiers) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ChestGuiBuildergui()Creates aChestGuiBuilderwith CHEST as theGuiTypestatic @NotNull TypedGuiBuilderCreates aTypedGuiBuilderto 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, clearItems, close, close, disableAllInteractions, disableItemDrop, disableItemPlace, disableItemSwap, disableItemTake, disableOtherActions, enableAllInteractions, enableItemDrop, enableItemPlace, enableItemSwap, enableItemTake, enableOtherActions, getFiller, getGuiItem, getGuiItems, getInventory, getRows, guiContainer, 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(@NotNull @NotNull GuiContainer guiContainer, @NotNull @NotNull Set<InteractionModifier> interactionModifiers)
-
-
Method Details
-
gui
@Contract("_ -> new") @NotNull public static @NotNull TypedGuiBuilder gui(@NotNull @NotNull GuiType type) Creates aTypedGuiBuilderto build aGui- Parameters:
type- TheGuiTypeto be used- Returns:
- A
TypedGuiBuilder - Since:
- 3.0.0
-
gui
Creates aChestGuiBuilderwith CHEST as theGuiType- Returns:
- A CHEST
ChestGuiBuilder - 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
@Contract("_ -> new") @NotNull 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
ChestGuiBuilder - Since:
- 3.0.0
-