V3685 .java

net.minecraft.util.datafix.schemas.V3685 (class, 28 lines): members: abstractArrow, registerEntities. strings: "minecraft:trident", "inBlockState", "item".

net.minecraft.util.datafix.schemasclass28 linescommonextends NamespacedSchema1.0 KB

API Surface (2)

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

String literals (5)

"inBlockState"
"item"
"minecraft:trident"
"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

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

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