WriteAndReadFix.java
net.minecraft.util.datafix.fixes.WriteAndReadFix
信息
- 全限定名:net.minecraft.util.datafix.fixes.WriteAndReadFix
- 类型:public class
- 包:net.minecraft.util.datafix.fixes
- 源码路径:src/main/java/net/minecraft/util/datafix/fixes/WriteAndReadFix.java
- 起始行号:L8
- 继承:DataFix
- 职责:
TODO
字段/常量
-
name- 类型:
String - 修饰符:
private final - 源码定位:
L9 - 说明:
TODO
- 类型:
-
type- 类型:
TypeReference - 修饰符:
private final - 源码定位:
L10 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
public WriteAndReadFix(Schema outputSchema, String name, TypeReference type) @ L12
- 构造器名:WriteAndReadFix
- 源码定位:L12
- 修饰符:public
参数:
- outputSchema: Schema
- name: String
- type: TypeReference
说明:
TODO
方法
下面的方法块按源码顺序生成。
protected TypeRewriteRule makeRule() @ L18
- 方法名:makeRule
- 源码定位:L18
- 返回类型:TypeRewriteRule
- 修饰符:protected
参数:
- 无
说明:
TODO
代码
public class WriteAndReadFix extends DataFix {
private final String name;
private final TypeReference type;
public WriteAndReadFix(Schema outputSchema, String name, TypeReference type) {
super(outputSchema, true);
this.name = name;
this.type = type;
}
@Override
protected TypeRewriteRule makeRule() {
return this.writeAndRead(this.name, this.getInputSchema().getType(this.type), this.getOutputSchema().getType(this.type));
}
}引用的其他类
- Schema
- 引用位置:
参数
- 引用位置: