Class InventoryDragListener

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

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

    • InventoryDragListener

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