22 lines
756 B
Java
22 lines
756 B
Java
|
package net.minecraft.util.datafix.fixes;
|
||
|
|
||
|
import com.mojang.datafixers.DSL;
|
||
|
import com.mojang.datafixers.DataFix;
|
||
|
import com.mojang.datafixers.TypeRewriteRule;
|
||
|
import com.mojang.datafixers.Typed;
|
||
|
import com.mojang.datafixers.schemas.Schema;
|
||
|
|
||
|
public class BlockStateStructureTemplateFix extends DataFix {
|
||
|
public BlockStateStructureTemplateFix(Schema p_15001_, boolean p_15002_) {
|
||
|
super(p_15001_, p_15002_);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public TypeRewriteRule makeRule() {
|
||
|
return this.fixTypeEverywhereTyped(
|
||
|
"BlockStateStructureTemplateFix",
|
||
|
this.getInputSchema().getType(References.BLOCK_STATE),
|
||
|
p_15004_ -> p_15004_.update(DSL.remainderFinder(), BlockStateData::upgradeBlockStateTag)
|
||
|
);
|
||
|
}
|
||
|
}
|