Class GUISkyBlockMenu
java.lang.Object
net.swofty.gui.inventory.SkyBlockInventoryGUI
net.swofty.gui.inventory.inventories.sbmenu.GUISkyBlockMenu
-
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.SkyBlockInventoryGUI
GUI_MAP, items, size, title -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod to allow people to hotkey items into the GUI or notvoidonBottomClick(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 guivoidsuddenlyQuit(net.minestom.server.inventory.Inventory inventory, SkyBlockPlayer player)
-
Constructor Details
-
GUISkyBlockMenu
public GUISkyBlockMenu()
-
-
Method Details
-
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
-