public class MessageContext
extends java.lang.Object
IMessageHandler
Modifier and Type | Field and Description |
---|---|
INetHandler |
netHandler
The
INetHandler for this message. |
Side |
side
The Side this message has been received on
|
Constructor and Description |
---|
MessageContext(INetHandler netHandler,
Side side) |
Modifier and Type | Method and Description |
---|---|
NetHandlerPlayClient |
getClientHandler() |
NetHandlerPlayServer |
getServerHandler() |
public final INetHandler netHandler
INetHandler
for this message. It could be a client or server handler, depending
on the side
received.public final Side side
MessageContext(INetHandler netHandler, Side side)
netHandler
- public NetHandlerPlayServer getServerHandler()
public NetHandlerPlayClient getClientHandler()