FireResistantToDamageResistantComponentFix.java
net.minecraft.util.datafix.fixes.FireResistantToDamageResistantComponentFix
信息
- 全限定名:net.minecraft.util.datafix.fixes.FireResistantToDamageResistantComponentFix
- 类型:public class
- 包:net.minecraft.util.datafix.fixes
- 源码路径:src/main/java/net/minecraft/util/datafix/fixes/FireResistantToDamageResistantComponentFix.java
- 起始行号:L6
- 继承:DataComponentRemainderFix
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
public FireResistantToDamageResistantComponentFix(Schema outputSchema) @ L7
- 构造器名:FireResistantToDamageResistantComponentFix
- 源码定位:L7
- 修饰符:public
参数:
- outputSchema: Schema
说明:
TODO
方法
下面的方法块按源码顺序生成。
protected <T> Dynamic<T> fixComponent(Dynamic<T> input) @ L11
- 方法名:fixComponent
- 源码定位:L11
- 返回类型:
Dynamic - 修饰符:protected
参数:
- input: Dynamic
说明:
TODO
代码
public class FireResistantToDamageResistantComponentFix extends DataComponentRemainderFix {
public FireResistantToDamageResistantComponentFix(Schema outputSchema) {
super(outputSchema, "FireResistantToDamageResistantComponentFix", "minecraft:fire_resistant", "minecraft:damage_resistant");
}
@Override
protected <T> Dynamic<T> fixComponent(Dynamic<T> input) {
return input.emptyMap().set("types", input.createString("#minecraft:is_fire"));
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
继承
- 引用位置:
-
- 引用位置:
参数/返回值
- 引用位置: