Java 类cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec 实例源码

项目:ElConQore    文件:EQPacketHandler.java   
public EQPacketHandler(String channel, FMLIndexedMessageToMessageCodec<T> codec) {
    this.channel = channel;
    this.codec = codec;
    channels = NetworkRegistry.INSTANCE.newChannel(channel, codec);
    handlers = Maps.newEnumMap(Side.class);
}