Package dev.triumphteam.gui.guis
Class ScrollingGui
java.lang.Object
dev.triumphteam.gui.guis.BaseGui
dev.triumphteam.gui.guis.PaginatedGui
dev.triumphteam.gui.guis.ScrollingGui
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
GUI that allows you to scroll through items
-
Constructor Summary
ConstructorsConstructorDescriptionScrollingGui(@NotNull GuiContainer guiContainer, int pageSize, @NotNull ScrollType scrollType, @NotNull Set<InteractionModifier> interactionModifiers) -
Method Summary
Modifier and TypeMethodDescriptionbooleannext()OverridesPaginatedGui.next()to make it work with the specific scrollsvoidopen(@NotNull org.bukkit.entity.HumanEntity player) OverridesPaginatedGui.open(HumanEntity)to make it work with the specific scrollsvoidopen(@NotNull org.bukkit.entity.HumanEntity player, int openPage) OverridesPaginatedGui.open(HumanEntity, int)to make it work with the specific scrollsbooleanprevious()OverridesPaginatedGui.previous()to make it work with the specific scrollsMethods inherited from class dev.triumphteam.gui.guis.PaginatedGui
addItem, addItem, clearPageItems, clearPageItems, getCurrentPageItems, getCurrentPageNum, getNextPageNum, getPageItems, getPagesNum, getPrevPageNum, removePageItem, removePageItem, setPageNum, setPageSize, update, updatePageItem, updatePageItem, updatePageItem, updatePageItem, updateTitleMethods inherited from class dev.triumphteam.gui.guis.BaseGui
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, removeItem, removeItem, removeItem, removeItem, setCloseGuiAction, setDefaultClickAction, setDefaultTopClickAction, setDragAction, setInventory, setItem, setItem, setItem, setOpenGuiAction, setOutsideClickAction, setPlayerInventoryAction, setUpdating, title, updateItem, updateItem, updateItem, updateItem
-
Constructor Details
-
ScrollingGui
public ScrollingGui(@NotNull @NotNull GuiContainer guiContainer, int pageSize, @NotNull @NotNull ScrollType scrollType, @NotNull @NotNull Set<InteractionModifier> interactionModifiers)
-
-
Method Details
-
next
public boolean next()OverridesPaginatedGui.next()to make it work with the specific scrolls- Overrides:
nextin classPaginatedGui- Returns:
- False if there is no next page.
-
previous
public boolean previous()OverridesPaginatedGui.previous()to make it work with the specific scrolls- Overrides:
previousin classPaginatedGui- Returns:
- False if there is no previous page.
-
open
public void open(@NotNull @NotNull org.bukkit.entity.HumanEntity player) OverridesPaginatedGui.open(HumanEntity)to make it work with the specific scrolls- Overrides:
openin classPaginatedGui- Parameters:
player- TheHumanEntityto open the GUI to
-
open
public void open(@NotNull @NotNull org.bukkit.entity.HumanEntity player, int openPage) OverridesPaginatedGui.open(HumanEntity, int)to make it work with the specific scrolls- Overrides:
openin classPaginatedGui- Parameters:
player- TheHumanEntityto open the GUI toopenPage- The page to open on
-