Class InventoryClickListener

java.lang.Object
com.ranull.graves.listener.InventoryClickListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class InventoryClickListener extends Object implements org.bukkit.event.Listener
Listener for handling InventoryClickEvent to manage grave-related inventory interactions.
  • Constructor Details

    • InventoryClickListener

      public InventoryClickListener(Graves plugin)
      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.