V3938 .java

net.minecraft.util.datafix.schemas.V3938 (class, 29 lines): members: abstractArrow, registerEntities. strings: "weapon", "inBlockState", "minecraft:arrow".

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

API Surface (2)

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

String literals (5)

"inBlockState"
"item"
"weapon"
"minecraft:spectral_arrow"
"minecraft:arrow"

Code Graph: Dependencies (2)

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

Full Source

V3938.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 V3938 extends NamespacedSchema {
11
	public V3938(final int versionKey, final Schema parent) {
12
		super(versionKey, parent);
13
	}
14
15
	protected static TypeTemplate abstractArrow(final Schema schema) {
16
		return DSL.optionalFields(
17
			"inBlockState", References.BLOCK_STATE.in(schema), "item", References.ITEM_STACK.in(schema), "weapon", References.ITEM_STACK.in(schema)
18
		);
19
	}
20
21
	@Override
22
	public Map<String, Supplier<TypeTemplate>> registerEntities(final Schema schema) {
23
		Map<String, Supplier<TypeTemplate>> map = super.registerEntities(schema);
24
		schema.register(map, "minecraft:spectral_arrow", () -> abstractArrow(schema));
25
		schema.register(map, "minecraft:arrow", () -> abstractArrow(schema));
26
		return map;
27
	}
28
}
29

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