@FunctionalInterface
public interface EntityMessageListener
extends java.util.EventListener
Entity
received a message.Modifier and Type | Method and Description |
---|---|
void |
messageReceived(EntityMessageEvent event)
This method is called whenever a message is received by
IEntity.sendMessage(Object, String) . |
void messageReceived(EntityMessageEvent event)
IEntity.sendMessage(Object, String)
.event
- The event data that contains information about the received message and sender.