Interface ItemClickHandler<P>

Type Parameters:
P - Player type
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 ItemClickHandler<P>
Functional interface for custom lobby item click handling. Register instances via ItemAPI.registerClickHandler(String, ItemClickHandler).
Since:
3.3
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handleClick(P player)
    Handle an item-click event.
  • Method Details

    • handleClick

      boolean handleClick(P player)
      Handle an item-click event.
      Parameters:
      player - Player who clicked the item
      Returns:
      true if the click was handled successfully