V3083 .java

net.minecraft.util.datafix.schemas.V3083 (class): members: registerEntities. strings: "minecraft:allay", "game_event", "event", "listener", "Inventory".

net.minecraft.util.datafix.schemasclass31 linescommonextends NamespacedSchema896 B

API Surface (1)

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

String literals (5)

"minecraft:allay"
"Inventory"
"listener"
"event"
"game_event"

Code Graph: Dependencies (2)

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

Full Source

V3083.java31 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 V3083 extends NamespacedSchema {
11
	public V3083(final int versionKey, final Schema parent) {
12
		super(versionKey, parent);
13
	}
14
15
	@Override
16
	public Map<String, Supplier<TypeTemplate>> registerEntities(final Schema schema) {
17
		Map<String, Supplier<TypeTemplate>> map = super.registerEntities(schema);
18
		schema.register(
19
			map,
20
			"minecraft:allay",
21
			() -> DSL.optionalFields(
22
				"Inventory",
23
				DSL.list(References.ITEM_STACK.in(schema)),
24
				"listener",
25
				DSL.optionalFields("event", DSL.optionalFields("game_event", References.GAME_EVENT_NAME.in(schema)))
26
			)
27
		);
28
		return map;
29
	}
30
}
31

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