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