Interface ClickHandler

All Superinterfaces:
InventoryCallbackHandler
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 ClickHandler extends InventoryCallbackHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handle(Cause cause, Container container, ClickType<?> clickType)
    Handler for inventory click callbacks without slot.
  • Method Details

    • handle

      boolean handle(Cause cause, Container container, ClickType<?> clickType)
      Handler for inventory click callbacks without slot.
      Parameters:
      cause - the cause
      container - the container
      clickType - the type of click
      Returns:
      false to prevent the action