24 lines
736 B
Java
24 lines
736 B
Java
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 V1928 extends NamespacedSchema {
|
|
public V1928(int i, Schema schema) {
|
|
super(i, schema);
|
|
}
|
|
|
|
protected static void registerMob(Schema schema, Map<String, Supplier<TypeTemplate>> map, String name) {
|
|
schema.registerSimple(map, name);
|
|
}
|
|
|
|
@Override
|
|
public Map<String, Supplier<TypeTemplate>> registerEntities(Schema schema) {
|
|
Map<String, Supplier<TypeTemplate>> map = super.registerEntities(schema);
|
|
map.remove("minecraft:illager_beast");
|
|
registerMob(schema, map, "minecraft:ravager");
|
|
return map;
|
|
}
|
|
}
|