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

28 lines
1 KiB
Java

package net.minecraft.util.datafix.schemas;
import com.mojang.datafixers.DSL;
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.register(map, "minecraft:creaking", (Supplier<TypeTemplate>)(() -> V100.equipment(schema)));
schema.register(map, "minecraft:creaking_transient", (Supplier<TypeTemplate>)(() -> V100.equipment(schema)));
return map;
}
@Override
public Map<String, Supplier<TypeTemplate>> registerBlockEntities(Schema schema) {
Map<String, Supplier<TypeTemplate>> map = super.registerBlockEntities(schema);
schema.register(map, "minecraft:creaking_heart", (Supplier<TypeTemplate>)(() -> DSL.optionalFields()));
return map;
}
}