Interface EventReceivedMessageFromPlayer<P extends Player>

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 EventReceivedMessageFromPlayer<P extends Player>
When the server receives a message from a player.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(P player, com.tenio.common.data.DataCollection message)
    When the server receives a message from a player.
  • Method Details

    • handle

      void handle(P player, com.tenio.common.data.DataCollection message)
      When the server receives a message from a player.
      Parameters:
      player - the Player which is sending a message to the server
      message - the receiving DataCollection