Java 类net.minecraft.network.datasync.DataSerializer 实例源码

项目:InspiringWorld    文件:DataSerializerView.java   
public static <T> DataSerializer<T> getByClass(final Class<T> type) {
    return serializerMap.get(type);
}
项目:InspiringWorld    文件:DataSerializerView.java   
public static <T extends Enum<T>> DataSerializer<T> createForEnum(Class<T> type) {
    return new EnumSerial<T>(type);
}
项目:InfinityLib    文件:EntityRegistryEntry.java   
public EntityRegistryEntry<E> registerDataSerializers(DataSerializer<?>... serializers) {
    for(DataSerializer<?> serializer : serializers) {
        DataSerializers.registerSerializer(serializer);
    }
    return this;
}