26 lines
839 B
Java
26 lines
839 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.mojang.datafixers.schemas.Schema
|
|
* com.mojang.serialization.Dynamic
|
|
*/
|
|
package net.minecraft.util.datafix.fixes;
|
|
|
|
import com.mojang.datafixers.schemas.Schema;
|
|
import com.mojang.serialization.Dynamic;
|
|
import net.minecraft.util.datafix.fixes.DataComponentRemainderFix;
|
|
|
|
public class FireResistantToDamageResistantComponentFix
|
|
extends DataComponentRemainderFix {
|
|
public FireResistantToDamageResistantComponentFix(Schema outputSchema) {
|
|
super(outputSchema, "FireResistantToDamageResistantComponentFix", "minecraft:fire_resistant", "minecraft:damage_resistant");
|
|
}
|
|
|
|
@Override
|
|
protected <T> Dynamic<T> fixComponent(Dynamic<T> input) {
|
|
return input.emptyMap().set("types", input.createString("#minecraft:is_fire"));
|
|
}
|
|
}
|
|
|