V4996_1 .java

net.minecraft.util.datafix.schemas.V4996_1 (class): members: registerBlockEntities. strings: "sherds", "minecraft:decorated_pot", "front", "back", "right".

net.minecraft.util.datafix.schemasclass40 linescommonextends NamespacedSchema1.0 KB

API Surface (1)

Map<String, Supplier<TypeTemplate>> registerBlockEntities(final Schema schema)

String literals (7)

"minecraft:decorated_pot"
"sherds"
"back"
"left"
"right"
"front"
"item"

Code Graph: Dependencies (2)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

V4996_1.java40 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 V4996_1 extends NamespacedSchema {
11
	public V4996_1(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,
20
			"minecraft:decorated_pot",
21
			() -> DSL.optionalFields(
22
				"sherds",
23
				DSL.optionalFields(
24
					"back",
25
					References.ITEM_STACK.in(schema),
26
					"left",
27
					References.ITEM_STACK.in(schema),
28
					"right",
29
					References.ITEM_STACK.in(schema),
30
					"front",
31
					References.ITEM_STACK.in(schema)
32
				),
33
				"item",
34
				References.ITEM_STACK.in(schema)
35
			)
36
		);
37
		return map;
38
	}
39
}
40

Decompiled Minecraft 26.3 source of V4996_1 (net/minecraft/util/datafix/schemas/V4996_1.java) with Mojang official mappings, stored verbatim on the site.