Package net.swofty.gui.inventory
Class SkyBlockPaginatedGUI<T>
java.lang.Object
net.swofty.gui.inventory.SkyBlockInventoryGUI
net.swofty.gui.inventory.SkyBlockPaginatedGUI<T>
- Direct Known Subclasses:
GUICreative
-
Nested Class Summary
Nested classes/interfaces inherited from class net.swofty.gui.inventory.SkyBlockInventoryGUI
SkyBlockInventoryGUI.CloseReason, SkyBlockInventoryGUI.InventoryGUIOpenEvent
-
Field Summary
FieldsFields inherited from class net.swofty.gui.inventory.SkyBlockInventoryGUI
GUI_MAP, items, size, title
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SkyBlockPaginatedGUI
(net.minestom.server.inventory.InventoryType size) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract GUIClickableItem
createItemFor
(T item, int slot) static GUIClickableItem
createNavigationButton
(SkyBlockPaginatedGUI<?> gui, int slot, String search, int page, boolean forward) static GUIQueryItem
createSearchItem
(SkyBlockPaginatedGUI<?> gui, int slot, String search) protected abstract PaginationList<T>
fillPaged
(SkyBlockPlayer player, PaginationList<T> paged) protected abstract int[]
protected abstract String
getTitle
(SkyBlockPlayer player, String query, int page, PaginationList<T> paged) void
open
(SkyBlockPlayer player) Opens the GUI for a playervoid
open
(SkyBlockPlayer player, String query, int page) protected abstract void
performSearch
(SkyBlockPlayer player, String query, int page, int maxPage) protected abstract boolean
shouldFilterFromSearch
(String query, T item) Methods inherited from class net.swofty.gui.inventory.SkyBlockInventoryGUI
afterOpen, allowHotkeying, border, border, border, border, fill, fill, fill, fill, fill, firstEmpty, get, onBottomClick, onClose, onOpen, set, set, set, setItems, suddenlyQuit, updateItemStacks
-
Field Details
-
latestPaged
-
-
Constructor Details
-
SkyBlockPaginatedGUI
protected SkyBlockPaginatedGUI(net.minestom.server.inventory.InventoryType size)
-
-
Method Details
-
getPaginatedSlots
protected abstract int[] getPaginatedSlots() -
fillPaged
-
shouldFilterFromSearch
-
performSearch
-
getTitle
protected abstract String getTitle(SkyBlockPlayer player, String query, int page, PaginationList<T> paged) -
createItemFor
-
open
Description copied from class:SkyBlockInventoryGUI
Opens the GUI for a player- Overrides:
open
in classSkyBlockInventoryGUI
- Parameters:
player
- the player the gui is being opened for
-
open
-
createSearchItem
-