Interface MenuDragCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MenuDragCallback
A callback interface for handling InventoryDragEvents in a Menu.
This callback is invoked when a player drags items across slots in the menu inventory.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDrag(@NotNull Player player, @NotNull InventoryDragEvent event)
    Called when a drag event occurs in the menu inventory.
  • Method Details

    • onDrag

      void onDrag(@NotNull @NotNull Player player, @NotNull @NotNull InventoryDragEvent event)
      Called when a drag event occurs in the menu inventory.
      Parameters:
      player - The player who performed the drag
      event - The drag event