V106 .java

net.minecraft.util.datafix.schemas.V106 (class): members: registerTypes, entityTypes. strings: "SpawnPotentials", "SpawnData", "Entity". imports: DSL.

net.minecraft.util.datafix.schemasclass29 linescommonextends Schema908 B

API Surface (1)

void registerTypes(final Schema schema, final Map<String, Supplier<TypeTemplate>> entityTypes, final Map<String, Supplier<TypeTemplate>> blockEntityTypes)

Fields & Constants (1)

entityTypes

String literals (3)

"SpawnPotentials"
"Entity"
"SpawnData"

Code Graph: Dependencies (1)

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

Full Source

V106.java29 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 V106 extends Schema {
11
	public V106(final int versionKey, final Schema parent) {
12
		super(versionKey, parent);
13
	}
14
15
	@Override
16
	public void registerTypes(
17
		final Schema schema, final Map<String, Supplier<TypeTemplate>> entityTypes, final Map<String, Supplier<TypeTemplate>> blockEntityTypes
18
	) {
19
		super.registerTypes(schema, entityTypes, blockEntityTypes);
20
		schema.registerType(
21
			true,
22
			References.UNTAGGED_SPAWNER,
23
			() -> DSL.optionalFields(
24
				"SpawnPotentials", DSL.list(DSL.fields("Entity", References.ENTITY_TREE.in(schema))), "SpawnData", References.ENTITY_TREE.in(schema)
25
			)
26
		);
27
	}
28
}
29

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