API Surface (1)
Map<String, Supplier<TypeTemplate>> registerBlockEntities(final Schema schema)
String literals (4)
"minecraft:test_block"
"minecraft:test_instance_block"
"error_message"
"errors"
Code Graph: Dependencies (2)
Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.
Full Source
V4302.java32 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 V4302 extends NamespacedSchema {
|
| 11 | public V4302(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.registerSimple(map, "minecraft:test_block");
|
| 19 | schema.register(
|
| 20 | map,
|
| 21 | "minecraft:test_instance_block",
|
| 22 | () -> DSL.optionalFields(
|
| 23 | "data",
|
| 24 | DSL.optionalFields("error_message", References.TEXT_COMPONENT.in(schema)),
|
| 25 | "errors",
|
| 26 | DSL.list(DSL.optionalFields("text", References.TEXT_COMPONENT.in(schema)))
|
| 27 | )
|
| 28 | );
|
| 29 | return map;
|
| 30 | }
|
| 31 | }
|
| 32 |
|
Decompiled Minecraft 26.3 source of V4302 (net/minecraft/util/datafix/schemas/V4302.java) with Mojang official mappings, stored verbatim on the site.