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