V1451_3.java
net.minecraft.util.datafix.schemas.V1451_3
信息
- 全限定名:net.minecraft.util.datafix.schemas.V1451_3
- 类型:public class
- 包:net.minecraft.util.datafix.schemas
- 源码路径:src/main/java/net/minecraft/util/datafix/schemas/V1451_3.java
- 起始行号:L10
- 继承:NamespacedSchema
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
public V1451_3(int versionKey, Schema parent) @ L11
- 构造器名:V1451_3
- 源码定位:L11
- 修饰符:public
参数:
- versionKey: int
- parent: Schema
说明:
TODO
方法
下面的方法块按源码顺序生成。
public Map<String,Supplier<TypeTemplate>> registerEntities(Schema schema) @ L15
- 方法名:registerEntities
- 源码定位:L15
- 返回类型:Map<String,Supplier
> - 修饰符:public
参数:
- schema: Schema
说明:
TODO
代码
public class V1451_3 extends NamespacedSchema {
public V1451_3(int versionKey, Schema parent) {
super(versionKey, parent);
}
@Override
public Map<String, Supplier<TypeTemplate>> registerEntities(Schema schema) {
Map<String, Supplier<TypeTemplate>> map = super.registerEntities(schema);
schema.registerSimple(map, "minecraft:egg");
schema.registerSimple(map, "minecraft:ender_pearl");
schema.registerSimple(map, "minecraft:fireball");
schema.register(map, "minecraft:potion", name -> DSL.optionalFields("Potion", References.ITEM_STACK.in(schema)));
schema.registerSimple(map, "minecraft:small_fireball");
schema.registerSimple(map, "minecraft:snowball");
schema.registerSimple(map, "minecraft:wither_skull");
schema.registerSimple(map, "minecraft:xp_bottle");
schema.register(map, "minecraft:arrow", () -> DSL.optionalFields("inBlockState", References.BLOCK_STATE.in(schema)));
schema.register(map, "minecraft:enderman", () -> DSL.optionalFields("carriedBlockState", References.BLOCK_STATE.in(schema)));
schema.register(
map,
"minecraft:falling_block",
() -> DSL.optionalFields("BlockState", References.BLOCK_STATE.in(schema), "TileEntityData", References.BLOCK_ENTITY.in(schema))
);
schema.register(map, "minecraft:spectral_arrow", () -> DSL.optionalFields("inBlockState", References.BLOCK_STATE.in(schema)));
schema.register(
map,
"minecraft:chest_minecart",
() -> DSL.optionalFields("DisplayState", References.BLOCK_STATE.in(schema), "Items", DSL.list(References.ITEM_STACK.in(schema)))
);
schema.register(
map,
"minecraft:commandblock_minecart",
() -> DSL.optionalFields("DisplayState", References.BLOCK_STATE.in(schema), "LastOutput", References.TEXT_COMPONENT.in(schema))
);
schema.register(map, "minecraft:furnace_minecart", () -> DSL.optionalFields("DisplayState", References.BLOCK_STATE.in(schema)));
schema.register(
map,
"minecraft:hopper_minecart",
() -> DSL.optionalFields("DisplayState", References.BLOCK_STATE.in(schema), "Items", DSL.list(References.ITEM_STACK.in(schema)))
);
schema.register(map, "minecraft:minecart", () -> DSL.optionalFields("DisplayState", References.BLOCK_STATE.in(schema)));
schema.register(
map,
"minecraft:spawner_minecart",
() -> DSL.optionalFields("DisplayState", References.BLOCK_STATE.in(schema), References.UNTAGGED_SPAWNER.in(schema))
);
schema.register(map, "minecraft:tnt_minecart", () -> DSL.optionalFields("DisplayState", References.BLOCK_STATE.in(schema)));
return map;
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
继承
- 引用位置: