Package at.hugob.plugin.library.gui
Class GUIListener<Plugin extends org.bukkit.plugin.java.JavaPlugin>
java.lang.Object
at.hugob.plugin.library.gui.GUIListener<Plugin>
- Type Parameters:
Plugin- The plugin this GUI Listener is responsible for
- All Implemented Interfaces:
org.bukkit.event.Listener
public abstract class GUIListener<Plugin extends org.bukkit.plugin.java.JavaPlugin>
extends Object
implements org.bukkit.event.Listener
Has All the basic Bukkit Listeners needed for a GUI to function
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSets up everything needed for the GUIListener -
Method Summary
Modifier and TypeMethodDescriptionvoidonInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) Listens to the InventoryClickEvent and delegates it to the correct GUIHandlervoidonInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event) Listens to the InventoryCloseEvent and delegates it to the correct GUIHandlervoidonInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event) Listens to the InventoryDragEvent and delegates it to the correct GUIHandler
-
Constructor Details
-
GUIListener
protected GUIListener()Sets up everything needed for the GUIListener
-
-
Method Details
-
onInventoryClick
public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) Listens to the InventoryClickEvent and delegates it to the correct GUIHandler- Parameters:
event- the InventoryClickEvent
-
onInventoryDrag
public void onInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event) Listens to the InventoryDragEvent and delegates it to the correct GUIHandler- Parameters:
event- the InventoryDragEvent
-
onInventoryClose
public void onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event) Listens to the InventoryCloseEvent and delegates it to the correct GUIHandler- Parameters:
event- the InventoryCloseEvent
-