Class GUICreative
java.lang.Object
net.swofty.gui.inventory.SkyBlockInventoryGUI
net.swofty.gui.inventory.SkyBlockPaginatedGUI<SkyBlockItem>
net.swofty.gui.inventory.inventories.GUICreative
-
Nested Class Summary
Nested classes/interfaces inherited from class net.swofty.gui.inventory.SkyBlockInventoryGUI
SkyBlockInventoryGUI.CloseReason, SkyBlockInventoryGUI.InventoryGUIOpenEvent -
Field Summary
Fields inherited from class net.swofty.gui.inventory.SkyBlockPaginatedGUI
latestPagedFields inherited from class net.swofty.gui.inventory.SkyBlockInventoryGUI
GUI_MAP, items, size, title -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod to allow people to hotkey items into the GUI or notprotected GUIClickableItemcreateItemFor(SkyBlockItem skyBlockItem, int slot) fillPaged(SkyBlockPlayer player, PaginationList<SkyBlockItem> paged) int[]getTitle(SkyBlockPlayer player, String query, int page, PaginationList<SkyBlockItem> paged) voidonBottomClick(net.minestom.server.event.inventory.InventoryPreClickEvent e) Runs when the player clicks on their own inventory whole this GUI is openvoidonClose(net.minestom.server.event.inventory.InventoryCloseEvent e, SkyBlockInventoryGUI.CloseReason reason) Runs when the player closes the guiprotected voidperformSearch(SkyBlockPlayer player, String query, int page, int maxPage) booleanshouldFilterFromSearch(String query, SkyBlockItem item) voidsuddenlyQuit(net.minestom.server.inventory.Inventory inventory, SkyBlockPlayer player) Methods inherited from class net.swofty.gui.inventory.SkyBlockPaginatedGUI
createNavigationButton, createSearchItem, open, open
-
Constructor Details
-
GUICreative
public GUICreative()
-
-
Method Details
-
getPaginatedSlots
public int[] getPaginatedSlots()- Specified by:
getPaginatedSlotsin classSkyBlockPaginatedGUI<SkyBlockItem>
-
fillPaged
public PaginationList<SkyBlockItem> fillPaged(SkyBlockPlayer player, PaginationList<SkyBlockItem> paged) - Specified by:
fillPagedin classSkyBlockPaginatedGUI<SkyBlockItem>
-
shouldFilterFromSearch
- Specified by:
shouldFilterFromSearchin classSkyBlockPaginatedGUI<SkyBlockItem>
-
performSearch
- Specified by:
performSearchin classSkyBlockPaginatedGUI<SkyBlockItem>
-
getTitle
public String getTitle(SkyBlockPlayer player, String query, int page, PaginationList<SkyBlockItem> paged) - Specified by:
getTitlein classSkyBlockPaginatedGUI<SkyBlockItem>
-
createItemFor
- Specified by:
createItemForin classSkyBlockPaginatedGUI<SkyBlockItem>
-
allowHotkeying
public boolean allowHotkeying()Description copied from class:SkyBlockInventoryGUIMethod to allow people to hotkey items into the GUI or not- Specified by:
allowHotkeyingin classSkyBlockInventoryGUI- Returns:
- a boolean
-
onClose
public void onClose(net.minestom.server.event.inventory.InventoryCloseEvent e, SkyBlockInventoryGUI.CloseReason reason) Description copied from class:SkyBlockInventoryGUIRuns when the player closes the gui- Specified by:
onClosein classSkyBlockInventoryGUI- Parameters:
e- the event of the gui closing
-
suddenlyQuit
- Specified by:
suddenlyQuitin classSkyBlockInventoryGUI
-
onBottomClick
public void onBottomClick(net.minestom.server.event.inventory.InventoryPreClickEvent e) Description copied from class:SkyBlockInventoryGUIRuns when the player clicks on their own inventory whole this GUI is open- Specified by:
onBottomClickin classSkyBlockInventoryGUI- Parameters:
e- the event of the click
-