Interface HytaleMenuActionHandler<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 HytaleMenuActionHandler<P>
Handles module-scoped actions triggered from Hytale custom UI menus.

This callback is used by the experimental Hytale menu API to dispatch actions declared with the MODULE; action target.

Since:
3.2
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(P player, String payload)
    Called when a MODULE action is triggered from a Hytale menu.
  • Method Details

    • handle

      void handle(P player, String payload)
      Called when a MODULE action is triggered from a Hytale menu.
      Parameters:
      player - the player that triggered the action
      payload - custom payload declared in the menu action string