24 lines
804 B
Java
24 lines
804 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 versionKey, Schema parent) {
|
|
super(versionKey, parent);
|
|
}
|
|
|
|
protected static void registerMob(Schema schema, Map<String, Supplier<TypeTemplate>> map, String name) {
|
|
schema.register(map, name, (Supplier<TypeTemplate>)(() -> V100.equipment(schema)));
|
|
}
|
|
|
|
@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;
|
|
}
|
|
}
|