Interface ModuleActionHandler<P>

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 ModuleActionHandler<P>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handle(P player, String payload)
    Handle a module action.
  • Method Details

    • handle

      boolean handle(P player, String payload)
      Handle a module action.
      Parameters:
      player - player who triggered the action
      payload - action payload
      Returns:
      true if handled, false otherwise