public class FMLRuntimeCodec extends FMLIndexedMessageToMessageCodec<FMLMessage>
INBOUNDPACKETTRACKER
Constructor and Description |
---|
FMLRuntimeCodec() |
Modifier and Type | Method and Description |
---|---|
void |
decodeInto(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf source,
FMLMessage msg) |
void |
encodeInto(io.netty.channel.ChannelHandlerContext ctx,
FMLMessage msg,
io.netty.buffer.ByteBuf target) |
protected void |
testMessageValidity(FMLProxyPacket msg)
Called to verify the message received.
|
addDiscriminator, decode, encode, exceptionCaught, handlerAdded
acceptInboundMessage, acceptOutboundMessage, channelRead, write
bind, close, connect, deregister, disconnect, flush, read
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
public void encodeInto(io.netty.channel.ChannelHandlerContext ctx, FMLMessage msg, io.netty.buffer.ByteBuf target) throws java.lang.Exception
encodeInto
in class FMLIndexedMessageToMessageCodec<FMLMessage>
java.lang.Exception
public void decodeInto(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf source, FMLMessage msg)
decodeInto
in class FMLIndexedMessageToMessageCodec<FMLMessage>
protected void testMessageValidity(FMLProxyPacket msg)
FMLIndexedMessageToMessageCodec
testMessageValidity
in class FMLIndexedMessageToMessageCodec<FMLMessage>