public abstract class FMLIndexedMessageToMessageCodec<A>
extends <any>
Modifier and Type | Field and Description |
---|---|
static <any> |
INBOUNDPACKETTRACKER
Make this accessible to subclasses
|
Constructor and Description |
---|
FMLIndexedMessageToMessageCodec() |
Modifier and Type | Method and Description |
---|---|
FMLIndexedMessageToMessageCodec<A> |
addDiscriminator(int discriminator,
java.lang.Class<? extends A> type) |
protected void |
decode(ChannelHandlerContext ctx,
FMLProxyPacket msg,
java.util.List<java.lang.Object> out) |
abstract void |
decodeInto(ChannelHandlerContext ctx,
ByteBuf source,
A msg) |
protected void |
encode(ChannelHandlerContext ctx,
A msg,
java.util.List<java.lang.Object> out) |
abstract void |
encodeInto(ChannelHandlerContext ctx,
A msg,
ByteBuf target) |
void |
exceptionCaught(ChannelHandlerContext ctx,
java.lang.Throwable cause) |
void |
handlerAdded(ChannelHandlerContext ctx) |
protected void |
testMessageValidity(FMLProxyPacket msg)
Called to verify the message received.
|
public static final <any> INBOUNDPACKETTRACKER
public void handlerAdded(ChannelHandlerContext ctx) throws java.lang.Exception
java.lang.Exception
public FMLIndexedMessageToMessageCodec<A> addDiscriminator(int discriminator, java.lang.Class<? extends A> type)
public abstract void encodeInto(ChannelHandlerContext ctx, A msg, ByteBuf target) throws java.lang.Exception
java.lang.Exception
protected final void encode(ChannelHandlerContext ctx, A msg, java.util.List<java.lang.Object> out) throws java.lang.Exception
java.lang.Exception
public abstract void decodeInto(ChannelHandlerContext ctx, ByteBuf source, A msg)
protected final void decode(ChannelHandlerContext ctx, FMLProxyPacket msg, java.util.List<java.lang.Object> out) throws java.lang.Exception
java.lang.Exception
protected void testMessageValidity(FMLProxyPacket msg)
msg
- public void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
java.lang.Exception