EntityTippedArrowFix.java
net.minecraft.util.datafix.fixes.EntityTippedArrowFix
信息
- 全限定名:net.minecraft.util.datafix.fixes.EntityTippedArrowFix
- 类型:public class
- 包:net.minecraft.util.datafix.fixes
- 源码路径:src/main/java/net/minecraft/util/datafix/fixes/EntityTippedArrowFix.java
- 起始行号:L6
- 继承:SimplestEntityRenameFix
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
public EntityTippedArrowFix(Schema outputSchema, boolean changesType) @ L7
- 构造器名:EntityTippedArrowFix
- 源码定位:L7
- 修饰符:public
参数:
- outputSchema: Schema
- changesType: boolean
说明:
TODO
方法
下面的方法块按源码顺序生成。
protected String rename(String name) @ L11
- 方法名:rename
- 源码定位:L11
- 返回类型:String
- 修饰符:protected
参数:
- name: String
说明:
TODO
代码
public class EntityTippedArrowFix extends SimplestEntityRenameFix {
public EntityTippedArrowFix(Schema outputSchema, boolean changesType) {
super("EntityTippedArrowFix", outputSchema, changesType);
}
@Override
protected String rename(String name) {
return Objects.equals(name, "TippedArrow") ? "Arrow" : name;
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
继承
- 引用位置: