Class GUIBanker
java.lang.Object
net.swofty.gui.inventory.SkyBlockInventoryGUI
net.swofty.gui.inventory.inventories.GUIBanker
- All Implemented Interfaces:
RefreshingGUI
-
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 guivoidrefreshItems(SkyBlockPlayer player) If the GUI implements this method, this is the method that should be using in setting all the itemsintHow long between each refresh (ticks)voidRuns before the GUI opens, in order to set the items invoidsuddenlyQuit(net.minestom.server.inventory.Inventory inventory, SkyBlockPlayer player)
-
Constructor Details
-
GUIBanker
public GUIBanker()
-
-
Method Details
-
setItems
Description copied from class:SkyBlockInventoryGUIRuns before the GUI opens, in order to set the items in- Overrides:
setItemsin classSkyBlockInventoryGUI- Parameters:
e- the event of the GUI opening
-
refreshItems
Description copied from interface:RefreshingGUIIf the GUI implements this method, this is the method that should be using in setting all the items- Specified by:
refreshItemsin interfaceRefreshingGUI
-
refreshRate
public int refreshRate()Description copied from interface:RefreshingGUIHow long between each refresh (ticks)- Specified by:
refreshRatein interfaceRefreshingGUI- Returns:
- time in ticks
-
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
-