2025-11-24 22:52:51 +03:00

30 lines
1.1 KiB
Java

/*
* 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<String, String> 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<String, String> 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);
}
}