Annotation Type ClickHandler


Annotates a method as a click handler that will accept inventory click events. Currently, each listener must take InventoryMenuSlot and InventoryClickEvent arguments.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int[]
    The slot position to handle clicks for.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    An optional filter for specific actions.
  • Element Details

    • slot

      int[] slot
      The slot position to handle clicks for.
    • filter

      InventoryAction[] filter
      An optional filter for specific actions. Default = handle all clicks
      Default:
      {}