Class GUIItemListener
java.lang.Object
de.placeblock.betterinventories.gui.listener.GUIItemListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener for GUIs that handles item interactions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchRemove(org.bukkit.event.Cancellable event, GUISection section, Vector2d position) Dispatches a remove actionvoidonInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) Called by Bukkit when Player clicks an InventoryvoidonInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event) Called by Bukkit when Player drags an Inventory
-
Constructor Details
-
GUIItemListener
public GUIItemListener()
-
-
Method Details
-
onInventoryClick
public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) Called by Bukkit when Player clicks an Inventory- Parameters:
event- The Event
-
dispatchRemove
public void dispatchRemove(org.bukkit.event.Cancellable event, GUISection section, Vector2d position) Dispatches a remove action- Parameters:
event- The eventsection- The sectionposition- The position
-
onInventoryDrag
public void onInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event) Called by Bukkit when Player drags an Inventory- Parameters:
event- The Event
-