Class GUIEnchantmentTable
java.lang.Object
net.swofty.gui.inventory.SkyBlockInventoryGUI
net.swofty.gui.inventory.inventories.GUIEnchantmentTable
-
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
ConstructorsConstructorDescriptionGUIEnchantmentTable(net.minestom.server.instance.Instance instance, net.minestom.server.coordinate.Pos enchantmentTable) -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod to allow people to hotkey items into the GUI or notstatic IntegergetBookshelfPower(net.minestom.server.instance.Instance instance, net.minestom.server.coordinate.Pos pos) 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 guivoidRuns when the player opens the guivoidsuddenlyQuit(net.minestom.server.inventory.Inventory inventory, SkyBlockPlayer player) voidupdateFromItem(SkyBlockItem item, EnchantmentType selected)
-
Constructor Details
-
GUIEnchantmentTable
public GUIEnchantmentTable(net.minestom.server.instance.Instance instance, net.minestom.server.coordinate.Pos enchantmentTable)
-
-
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
-
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
-
getBookshelfPower
public static Integer getBookshelfPower(net.minestom.server.instance.Instance instance, net.minestom.server.coordinate.Pos pos)
-