Interface EntityMessageListener

All Superinterfaces:
EventListener
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 EntityMessageListener extends EventListener
This listener provides callbacks for when an Entity received a message.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called whenever a message is received by [String)][IEntity#sendMessage(Object,].
  • Method Details

    • messageReceived

      void messageReceived(EntityMessageEvent event)
      This method is called whenever a message is received by [String)][IEntity#sendMessage(Object,].
      Parameters:
      event - The event data that contains information about the received message and sender.