/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.google.common.collect.ImmutableMap * com.mojang.datafixers.schemas.Schema */ package net.minecraft.util.datafix.fixes; import com.google.common.collect.ImmutableMap; import com.mojang.datafixers.schemas.Schema; import java.util.Map; import net.minecraft.util.datafix.fixes.SimplestEntityRenameFix; public class EntityCodSalmonFix extends SimplestEntityRenameFix { public static final Map RENAMED_IDS = ImmutableMap.builder().put((Object)"minecraft:salmon_mob", (Object)"minecraft:salmon").put((Object)"minecraft:cod_mob", (Object)"minecraft:cod").build(); public static final Map RENAMED_EGG_IDS = ImmutableMap.builder().put((Object)"minecraft:salmon_mob_spawn_egg", (Object)"minecraft:salmon_spawn_egg").put((Object)"minecraft:cod_mob_spawn_egg", (Object)"minecraft:cod_spawn_egg").build(); public EntityCodSalmonFix(Schema schema, boolean changesType) { super("EntityCodSalmonFix", schema, changesType); } @Override protected String rename(String name) { return RENAMED_IDS.getOrDefault(name, name); } }