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