cpw.mods.fml.common.network.simpleimpl

## Interface IMessageHandler<REQ extends IMessage,REPLY extends IMessage>

- Type Parameters:
    `REQ` - This is the request type - it is the message you expect to receive from remote.
    `REPLY` - This is the reply type - it is the message you expect to send in reply. You can use IMessage as the type here if you don't anticipate sending a reply.

      public interface IMessageHandler<REQ extends IMessage,REPLY extends IMessage>

  A message handler based on `IMessage`. Implement and override `#onMessage(IMessage)` to process your packet. Supply the class to `SimpleNetworkWrapper#registerMessage(Class, Class, byte, cpw.mods.fml.relauncher.Side)` to register both the message type and it's associated handler.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `REPLY` | `onMessage(REQ message, MessageContext ctx)` Called when a message is received of the appropriate type.

- - ### Method Detail

    - #### onMessage

          REPLY onMessage(REQ message,
                        MessageContext ctx)

      Called when a message is received of the appropriate type. You can optionally return a reply message, or null if no reply is needed.
      Parameters:
        `message` - The message
      Returns:
        an optional return message