V1451_4 .java

net.minecraft.util.datafix.schemas.V1451_4 (class, 23 lines): members: registerTypes, entityTypes. imports: References, TypeTemplate, DSL.

net.minecraft.util.datafix.schemasclass23 linescommonextends NamespacedSchema778 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

Code Graph: Dependencies (2)

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

Full Source

V1451_4.java23 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 V1451_4 extends NamespacedSchema {
11
	public V1451_4(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(false, References.BLOCK_NAME, () -> DSL.constType(namespacedString()));
21
	}
22
}
23

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