Interface EntityMessageListener
- All Superinterfaces:
java.util.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 java.util.EventListener
This listener provides callbacks for when an
Entity
received a message.Method Summary
Modifier and Type Method Description void
messageReceived(EntityMessageEvent event)
This method is called whenever a message is received byIEntity.sendMessage(Object, String)
.
Method Details
messageReceived
This method is called whenever a message is received byIEntity.sendMessage(Object, String)
.- Parameters:
event
- The event data that contains information about the received message and sender.