Package dev.triumphteam.gui.guis
Class GuiListener
java.lang.Object
dev.triumphteam.gui.guis.GuiListener
- All Implemented Interfaces:
org.bukkit.event.Listener
public final class GuiListener
extends java.lang.Object
implements org.bukkit.event.Listener
-
Constructor Summary
Constructors Constructor Description GuiListener()
-
Method Summary
Modifier and Type Method Description void
onGuiClick(org.bukkit.event.inventory.InventoryClickEvent event)
Handles what happens when a player clicks on the GUIvoid
onGuiClose(org.bukkit.event.inventory.InventoryCloseEvent event)
Handles what happens when the GUI is closedvoid
onGuiDrag(org.bukkit.event.inventory.InventoryDragEvent event)
Handles what happens when a player clicks on the GUIvoid
onGuiOpen(org.bukkit.event.inventory.InventoryOpenEvent event)
Handles what happens when the GUI is opened
-
Constructor Details
-
GuiListener
public GuiListener()
-
-
Method Details
-
onGuiClick
public void onGuiClick(org.bukkit.event.inventory.InventoryClickEvent event)Handles what happens when a player clicks on the GUI- Parameters:
event
- The InventoryClickEvent
-
onGuiDrag
public void onGuiDrag(org.bukkit.event.inventory.InventoryDragEvent event)Handles what happens when a player clicks on the GUI- Parameters:
event
- The InventoryClickEvent
-
onGuiClose
public void onGuiClose(org.bukkit.event.inventory.InventoryCloseEvent event)Handles what happens when the GUI is closed- Parameters:
event
- The InventoryCloseEvent
-
onGuiOpen
public void onGuiOpen(org.bukkit.event.inventory.InventoryOpenEvent event)Handles what happens when the GUI is opened- Parameters:
event
- The InventoryOpenEvent
-