public interface MessageHandler
Game implementations to provide new
instances of MessageHandlers to anyone in the game. This
pattern lets the game define the logic for messages and how to handle
them, but offloads contention to the class (typically Player)
that is trying to process a message.| Modifier and Type | Method and Description |
|---|---|
void |
handleMessage(Player player,
byte[] message)
Called to handle a message.
|
void handleMessage(Player player, byte[] message)
player - the player associated with the messagedata - the messageCopyright © 2013. All Rights Reserved.