File size: 756 Bytes
d46f4a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
        );
    }
}