V4312.java
net.minecraft.util.datafix.schemas.V4312
信息
- 全限定名:net.minecraft.util.datafix.schemas.V4312
- 类型:public class
- 包:net.minecraft.util.datafix.schemas
- 源码路径:src/main/java/net/minecraft/util/datafix/schemas/V4312.java
- 起始行号:L11
- 继承:NamespacedSchema
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
public V4312(int versionKey, Schema parent) @ L12
- 构造器名:V4312
- 源码定位:L12
- 修饰符:public
参数:
- versionKey: int
- parent: Schema
说明:
TODO
方法
下面的方法块按源码顺序生成。
public void registerTypes(Schema schema, Map<String,Supplier<TypeTemplate>> entityTypes, Map<String,Supplier<TypeTemplate>> blockEntityTypes) @ L16
- 方法名:registerTypes
- 源码定位:L16
- 返回类型:void
- 修饰符:public
参数:
- schema: Schema
- entityTypes: Map<String,Supplier
> - blockEntityTypes: Map<String,Supplier
>
说明:
TODO
代码
public class V4312 extends NamespacedSchema {
public V4312(int versionKey, Schema parent) {
super(versionKey, parent);
}
@Override
public void registerTypes(Schema schema, Map<String, Supplier<TypeTemplate>> entityTypes, Map<String, Supplier<TypeTemplate>> blockEntityTypes) {
super.registerTypes(schema, entityTypes, blockEntityTypes);
schema.registerType(
false,
References.PLAYER,
() -> DSL.and(
References.ENTITY_EQUIPMENT.in(schema),
DSL.optionalFields(
Pair.of("RootVehicle", DSL.optionalFields("Entity", References.ENTITY_TREE.in(schema))),
Pair.of("ender_pearls", DSL.list(References.ENTITY_TREE.in(schema))),
Pair.of("Inventory", DSL.list(References.ITEM_STACK.in(schema))),
Pair.of("EnderItems", DSL.list(References.ITEM_STACK.in(schema))),
Pair.of("ShoulderEntityLeft", References.ENTITY_TREE.in(schema)),
Pair.of("ShoulderEntityRight", References.ENTITY_TREE.in(schema)),
Pair.of(
"recipeBook",
DSL.optionalFields("recipes", DSL.list(References.RECIPE.in(schema)), "toBeDisplayed", DSL.list(References.RECIPE.in(schema)))
)
)
)
);
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
继承
- 引用位置: