30 lines
990 B
Java
30 lines
990 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 EntityZombifiedPiglinRenameFix
|
|
extends SimplestEntityRenameFix {
|
|
public static final Map<String, String> RENAMED_IDS = ImmutableMap.builder().put((Object)"minecraft:zombie_pigman_spawn_egg", (Object)"minecraft:zombified_piglin_spawn_egg").build();
|
|
|
|
public EntityZombifiedPiglinRenameFix(Schema outputSchema) {
|
|
super("EntityZombifiedPiglinRenameFix", outputSchema, true);
|
|
}
|
|
|
|
@Override
|
|
protected String rename(String name) {
|
|
return Objects.equals("minecraft:zombie_pigman", name) ? "minecraft:zombified_piglin" : name;
|
|
}
|
|
}
|
|
|