V1470.java
net.minecraft.util.datafix.schemas.V1470
信息
- 全限定名:net.minecraft.util.datafix.schemas.V1470
- 类型:public class
- 包:net.minecraft.util.datafix.schemas
- 源码路径:src/main/java/net/minecraft/util/datafix/schemas/V1470.java
- 起始行号:L10
- 继承:NamespacedSchema
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
public V1470(int versionKey, Schema parent) @ L11
- 构造器名:V1470
- 源码定位:L11
- 修饰符:public
参数:
- versionKey: int
- parent: Schema
说明:
TODO
方法
下面的方法块按源码顺序生成。
protected static void registerMob(Schema schema, Map<String,Supplier<TypeTemplate>> map, String name) @ L15
- 方法名:registerMob
- 源码定位:L15
- 返回类型:void
- 修饰符:protected static
参数:
- schema: Schema
- map: Map<String,Supplier
> - name: String
说明:
TODO
public Map<String,Supplier<TypeTemplate>> registerEntities(Schema schema) @ L19
- 方法名:registerEntities
- 源码定位:L19
- 返回类型:Map<String,Supplier
> - 修饰符:public
参数:
- schema: Schema
说明:
TODO
代码
public class V1470 extends NamespacedSchema {
public V1470(int versionKey, Schema parent) {
super(versionKey, parent);
}
protected static void registerMob(Schema schema, Map<String, Supplier<TypeTemplate>> map, String name) {
schema.registerSimple(map, name);
}
@Override
public Map<String, Supplier<TypeTemplate>> registerEntities(Schema schema) {
Map<String, Supplier<TypeTemplate>> map = super.registerEntities(schema);
registerMob(schema, map, "minecraft:turtle");
registerMob(schema, map, "minecraft:cod_mob");
registerMob(schema, map, "minecraft:tropical_fish");
registerMob(schema, map, "minecraft:salmon_mob");
registerMob(schema, map, "minecraft:puffer_fish");
registerMob(schema, map, "minecraft:phantom");
registerMob(schema, map, "minecraft:dolphin");
registerMob(schema, map, "minecraft:drowned");
schema.register(
map,
"minecraft:trident",
name -> DSL.optionalFields("inBlockState", References.BLOCK_STATE.in(schema), "Trident", References.ITEM_STACK.in(schema))
);
return map;
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
继承
- 引用位置: