API Surface (1)
Map<String, Supplier<TypeTemplate>> registerBlockEntities(final Schema schema)
String literals (4)
"minecraft:decorated_pot"
"shards"
"item"
"minecraft:suspicious_sand"
Code Graph: Dependencies (2)
Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.
Full Source
V3327.java25 lines · Minecraft 26.3 · verbatim
| 1 | package net.minecraft.util.datafix.schemas;
|
| 2 |
|
| 3 | import com.mojang.datafixers.DSL;
|
| 4 | import com.mojang.datafixers.schemas.Schema;
|
| 5 | import com.mojang.datafixers.types.templates.TypeTemplate;
|
| 6 | import java.util.Map;
|
| 7 | import java.util.function.Supplier;
|
| 8 | import net.minecraft.util.datafix.fixes.References;
|
| 9 |
|
| 10 | public class V3327 extends NamespacedSchema {
|
| 11 | public V3327(final int versionKey, final Schema parent) {
|
| 12 | super(versionKey, parent);
|
| 13 | }
|
| 14 |
|
| 15 | @Override
|
| 16 | public Map<String, Supplier<TypeTemplate>> registerBlockEntities(final Schema schema) {
|
| 17 | Map<String, Supplier<TypeTemplate>> map = super.registerBlockEntities(schema);
|
| 18 | schema.register(
|
| 19 | map, "minecraft:decorated_pot", () -> DSL.optionalFields("shards", DSL.list(References.ITEM_NAME.in(schema)), "item", References.ITEM_STACK.in(schema))
|
| 20 | );
|
| 21 | schema.register(map, "minecraft:suspicious_sand", () -> DSL.optionalFields("item", References.ITEM_STACK.in(schema)));
|
| 22 | return map;
|
| 23 | }
|
| 24 | }
|
| 25 |
|
Decompiled Minecraft 26.3 source of V3327 (net/minecraft/util/datafix/schemas/V3327.java) with Mojang official mappings, stored verbatim on the site.