minecraft-src/net/minecraft/util/datafix/schemas/V701.java
2025-07-04 01:41:11 +03:00

24 lines
785 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 V701 extends Schema {
public V701(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);
registerMob(schema, map, "WitherSkeleton");
registerMob(schema, map, "Stray");
return map;
}
}