Interface SlotClickHandler

All Superinterfaces:
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 SlotClickHandler extends InventoryCallbackHandler
  • Method Details

    • handle

      boolean handle(Cause cause, Container container, Slot slot, int slotIndex, ClickType<?> clickType)
      Handler for inventory click callbacks except ClickTypes.KEY_SWAP see KeySwapHandler
      cause - the cause
      container - the container
      slot - the primary clicked slot
      slotIndex - the primary clicked slot index
      clickType - the type of click
      false to prevent the action