V1906 .java

net.minecraft.util.datafix.schemas.V1906 (class, 30 lines): members: registerInventory, registerBlockEntities. strings: "minecraft:lectern", "Book".

net.minecraft.util.datafix.schemasclass30 linescommonextends NamespacedSchema1.1 KB

API Surface (2)

Map<String, Supplier<TypeTemplate>> registerBlockEntities(final Schema schema)
void registerInventory(final Schema schema, final Map<String, Supplier<TypeTemplate>> map, final String name)

String literals (6)

"minecraft:barrel"
"minecraft:smoker"
"minecraft:blast_furnace"
"minecraft:lectern"
"Book"
"minecraft:bell"

Code Graph: Dependencies (3)

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

Full Source

V1906.java30 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 V1906 extends NamespacedSchema {
11
	public V1906(final int versionKey, final Schema parent) {
12
		super(versionKey, parent);
13
	}
14
15
	@Override
16
	public Map<String, Supplier<TypeTemplate>> registerBlockEntities(final Schema schema) {
17
		Map<String, Supplier<TypeTemplate>> map = super.registerBlockEntities(schema);
18
		registerInventory(schema, map, "minecraft:barrel");
19
		registerInventory(schema, map, "minecraft:smoker");
20
		registerInventory(schema, map, "minecraft:blast_furnace");
21
		schema.register(map, "minecraft:lectern", name -> DSL.optionalFields("Book", References.ITEM_STACK.in(schema)));
22
		schema.registerSimple(map, "minecraft:bell");
23
		return map;
24
	}
25
26
	protected static void registerInventory(final Schema schema, final Map<String, Supplier<TypeTemplate>> map, final String name) {
27
		schema.register(map, name, () -> V1458.nameableInventory(schema));
28
	}
29
}
30

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