protected void decode(ChannelHandlerContext ctx, FMLProxyPacket msg, List<Object> out) throws Exception
{
//Get the encoded data from the incoming packet
ByteBuf encodedData = msg.payload();
//Get the class for interpreting this packet
byte discriminator = encodedData.readByte();
Class<? extends PacketBase> cl = packets.get(discriminator);
//If this discriminator returns no class, reject it
if(cl == null)
throw new NullPointerException("Packet not registered for discriminator : " + discriminator);