Java 类net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec 实例源码

项目:HazardousResearch    文件:PacketHandler.java   
@Override
public FMLIndexedMessageToMessageCodec<SimplePacket> addDiscriminator(int discriminator, Class<? extends SimplePacket> type)
{
    nextDiscriminator++;
    return super.addDiscriminator(discriminator, type);
}