V3689 .java

net.minecraft.util.datafix.schemas.V3689 (class): members: registerBlockEntities, registerEntities. strings: "minecraft:breeze_wind_charge", "spawn_data".

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

API Surface (2)

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

String literals (7)

"minecraft:breeze"
"minecraft:wind_charge"
"minecraft:breeze_wind_charge"
"minecraft:trial_spawner"
"spawn_potentials"
"entity"
"spawn_data"

Code Graph: Dependencies (2)

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

Full Source

V3689.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 V3689 extends NamespacedSchema {
11
	public V3689(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.registerSimple(map, "minecraft:breeze");
19
		schema.registerSimple(map, "minecraft:wind_charge");
20
		schema.registerSimple(map, "minecraft:breeze_wind_charge");
21
		return map;
22
	}
23
24
	@Override
25
	public Map<String, Supplier<TypeTemplate>> registerBlockEntities(final Schema schema) {
26
		Map<String, Supplier<TypeTemplate>> map = super.registerBlockEntities(schema);
27
		schema.register(
28
			map,
29
			"minecraft:trial_spawner",
30
			() -> DSL.optionalFields(
31
				"spawn_potentials",
32
				DSL.list(DSL.fields("data", DSL.fields("entity", References.ENTITY_TREE.in(schema)))),
33
				"spawn_data",
34
				DSL.fields("entity", References.ENTITY_TREE.in(schema))
35
			)
36
		);
37
		return map;
38
	}
39
}
40

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