BlockEntityShulkerBoxColorFix.java
net.minecraft.util.datafix.fixes.BlockEntityShulkerBoxColorFix
信息
- 全限定名:net.minecraft.util.datafix.fixes.BlockEntityShulkerBoxColorFix
- 类型:public class
- 包:net.minecraft.util.datafix.fixes
- 源码路径:src/main/java/net/minecraft/util/datafix/fixes/BlockEntityShulkerBoxColorFix.java
- 起始行号:L7
- 继承:NamedEntityFix
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
public BlockEntityShulkerBoxColorFix(Schema outputSchema, boolean changesType) @ L8
- 构造器名:BlockEntityShulkerBoxColorFix
- 源码定位:L8
- 修饰符:public
参数:
- outputSchema: Schema
- changesType: boolean
说明:
TODO
方法
下面的方法块按源码顺序生成。
protected Typed<?> fix(Typed<?> entity) @ L12
- 方法名:fix
- 源码定位:L12
- 返回类型:Typed<?>
- 修饰符:protected
参数:
- entity: Typed<?>
说明:
TODO
代码
public class BlockEntityShulkerBoxColorFix extends NamedEntityFix {
public BlockEntityShulkerBoxColorFix(Schema outputSchema, boolean changesType) {
super(outputSchema, changesType, "BlockEntityShulkerBoxColorFix", References.BLOCK_ENTITY, "minecraft:shulker_box");
}
@Override
protected Typed<?> fix(Typed<?> entity) {
return entity.update(DSL.remainderFinder(), tag -> tag.remove("Color"));
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
继承
- 引用位置: