Code/net/minecraft/util/datafix/fixes/DecoratedPotFieldRenameFix....

21 lines
819 B
Java
Raw Permalink Normal View History

2025-07-01 06:20:03 +00:00
package net.minecraft.util.datafix.fixes;
import com.mojang.datafixers.DataFix;
import com.mojang.datafixers.TypeRewriteRule;
import com.mojang.datafixers.schemas.Schema;
import com.mojang.datafixers.types.Type;
public class DecoratedPotFieldRenameFix extends DataFix {
private static final String DECORATED_POT_ID = "minecraft:decorated_pot";
public DecoratedPotFieldRenameFix(Schema p_281527_) {
super(p_281527_, true);
}
@Override
protected TypeRewriteRule makeRule() {
Type<?> type = this.getInputSchema().getChoiceType(References.BLOCK_ENTITY, "minecraft:decorated_pot");
Type<?> type1 = this.getOutputSchema().getChoiceType(References.BLOCK_ENTITY, "minecraft:decorated_pot");
return this.convertUnchecked("DecoratedPotFieldRenameFix", type, type1);
}
}