Class GUIReforge
java.lang.Object
net.swofty.gui.inventory.SkyBlockInventoryGUI
net.swofty.gui.inventory.inventories.GUIReforge
-
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 notvoidborder(net.minestom.server.item.ItemStack.Builder stack) Fills the border between two corners of your GUI with the item stack of your choicevoidonBottomClick(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 guivoidRuns when the player opens the guivoidsuddenlyQuit(net.minestom.server.inventory.Inventory inventory, SkyBlockPlayer player) voidupdateFromItem(SkyBlockItem item)
-
Constructor Details
-
GUIReforge
public GUIReforge()
-
-
Method Details
-
onOpen
Description copied from class:SkyBlockInventoryGUIRuns when the player opens the gui- Overrides:
onOpenin classSkyBlockInventoryGUI- Parameters:
e- the event of the gui opening
-
updateFromItem
-
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
-
border
public void border(net.minestom.server.item.ItemStack.Builder stack) Description copied from class:SkyBlockInventoryGUIFills the border between two corners of your GUI with the item stack of your choice- Overrides:
borderin classSkyBlockInventoryGUI- Parameters:
stack- theItemStackof your choice
-
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
-