BlockEntityShulkerBoxColorFix .java

net.minecraft.util.datafix.fixes.BlockEntityShulkerBoxColorFix (class, 17 lines): members: fix. strings: "minecraft:shulker_box", "Color". imports: Typed.

net.minecraft.util.datafix.fixesclass17 linescommonextends NamedEntityFix584 B

API Surface (1)

Typed<?> fix(final Typed<?> entity)

String literals (2)

"minecraft:shulker_box"
"Color"

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

BlockEntityShulkerBoxColorFix.java17 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.datafix.fixes;
2
3
import com.mojang.datafixers.DSL;
4
import com.mojang.datafixers.Typed;
5
import com.mojang.datafixers.schemas.Schema;
6
7
public class BlockEntityShulkerBoxColorFix extends NamedEntityFix {
8
	public BlockEntityShulkerBoxColorFix(final Schema outputSchema, final boolean changesType) {
9
		super(outputSchema, changesType, "BlockEntityShulkerBoxColorFix", References.BLOCK_ENTITY, "minecraft:shulker_box");
10
	}
11
12
	@Override
13
	protected Typed<?> fix(final Typed<?> entity) {
14
		return entity.update(DSL.remainderFinder(), tag -> tag.remove("Color"));
15
	}
16
}
17

Decompiled Minecraft 26.3 source of BlockEntityShulkerBoxColorFix (net/minecraft/util/datafix/fixes/BlockEntityShulkerBoxColorFix.java) with Mojang official mappings, stored verbatim on the site.