minecraft-src/net/minecraft/util/datafix/schemas/V4071.java
2025-07-04 03:45:38 +03:00

27 lines
863 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 V4071 extends NamespacedSchema {
public V4071(int i, Schema schema) {
super(i, schema);
}
@Override
public Map<String, Supplier<TypeTemplate>> registerEntities(Schema schema) {
Map<String, Supplier<TypeTemplate>> map = super.registerEntities(schema);
schema.registerSimple(map, "minecraft:creaking");
schema.registerSimple(map, "minecraft:creaking_transient");
return map;
}
@Override
public Map<String, Supplier<TypeTemplate>> registerBlockEntities(Schema schema) {
Map<String, Supplier<TypeTemplate>> map = super.registerBlockEntities(schema);
this.registerSimple(map, "minecraft:creaking_heart");
return map;
}
}