Package com.ranull.graves.listener
Class InventoryDragListener
java.lang.Object
com.ranull.graves.listener.InventoryDragListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener for handling InventoryDragEvent to manage grave-related inventory interactions.
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryDragListener
(Graves plugin) Constructs an InventoryDragListener with the specified Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onInventoryDrag
(org.bukkit.event.inventory.InventoryDragEvent event) Handles the InventoryDragEvent to perform actions based on the type of inventory holder.
-
Constructor Details
-
InventoryDragListener
Constructs an InventoryDragListener with the specified Graves plugin.- Parameters:
plugin
- The Graves plugin instance.
-
-
Method Details
-
onInventoryDrag
public void onInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event) Handles the InventoryDragEvent to perform actions based on the type of inventory holder. Updates grave inventories and handles interactions with GraveList and GraveMenu inventories.- Parameters:
event
- The InventoryDragEvent to handle.
-