Interface MessageListener
public interface MessageListener
Called when a message is received from the server.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe type of the message received from the server. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleMessage(NetServerChannel channel, NetServerMessage message, MessageListener.MessageType type) Called when a message is received from the server.
-
Method Details
-
handleMessage
void handleMessage(NetServerChannel channel, NetServerMessage message, MessageListener.MessageType type) throws Exception Called when a message is received from the server.- Parameters:
channel- the channel that received the message.message- the message that was received.type- the type of the received message.- Throws:
NullPointerException- if an argument isnull.Exception- if an unexpected error occurs.
-