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

30 lines
976 B
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 java.util.Objects;
import net.minecraft.util.datafix.fixes.SimplestEntityRenameFix;
public class EntityRavagerRenameFix
extends SimplestEntityRenameFix {
public static final Map<String, String> RENAMED_IDS = ImmutableMap.builder().put((Object)"minecraft:illager_beast_spawn_egg", (Object)"minecraft:ravager_spawn_egg").build();
public EntityRavagerRenameFix(Schema outputSchema, boolean changesType) {
super("EntityRavagerRenameFix", outputSchema, changesType);
}
@Override
protected String rename(String name) {
return Objects.equals("minecraft:illager_beast", name) ? "minecraft:ravager" : name;
}
}