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.
This listener provides callbacks for when an
Entity received a message.-
Method Summary
Modifier and TypeMethodDescriptionvoidThis 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.
-