Code/net/minecraft/util/datafix/schemas/V1510.java

30 lines
1.5 KiB
Java
Raw Permalink Normal View History

2025-07-01 06:20:03 +00:00
package net.minecraft.util.datafix.schemas;
import com.mojang.datafixers.schemas.Schema;
import com.mojang.datafixers.types.templates.TypeTemplate;
import java.util.Map;
import java.util.function.Supplier;
public class V1510 extends NamespacedSchema {
public V1510(int p_17727_, Schema p_17728_) {
super(p_17727_, p_17728_);
}
@Override
public Map<String, Supplier<TypeTemplate>> registerEntities(Schema p_17730_) {
Map<String, Supplier<TypeTemplate>> map = super.registerEntities(p_17730_);
map.put("minecraft:command_block_minecart", map.remove("minecraft:commandblock_minecart"));
map.put("minecraft:end_crystal", map.remove("minecraft:ender_crystal"));
map.put("minecraft:snow_golem", map.remove("minecraft:snowman"));
map.put("minecraft:evoker", map.remove("minecraft:evocation_illager"));
map.put("minecraft:evoker_fangs", map.remove("minecraft:evocation_fangs"));
map.put("minecraft:illusioner", map.remove("minecraft:illusion_illager"));
map.put("minecraft:vindicator", map.remove("minecraft:vindication_illager"));
map.put("minecraft:iron_golem", map.remove("minecraft:villager_golem"));
map.put("minecraft:experience_orb", map.remove("minecraft:xp_orb"));
map.put("minecraft:experience_bottle", map.remove("minecraft:xp_bottle"));
map.put("minecraft:eye_of_ender", map.remove("minecraft:eye_of_ender_signal"));
map.put("minecraft:firework_rocket", map.remove("minecraft:fireworks_rocket"));
return map;
}
}