SlotDisplays .java

net.minecraft.world.item.crafting.display.SlotDisplays (class, 20 lines): members: bootstrap. strings: "only_with_component", "with_any_potion", "dyed".

net.minecraft.world.item.crafting.displayclass20 linescommon1.0 KB

API Surface (1)

SlotDisplay.Type<?> bootstrap(final Registry<SlotDisplay.Type<?>> registry)

String literals (10)

"empty"
"any_fuel"
"with_any_potion"
"only_with_component"
"item"
"item_stack"
"dyed"
"smithing_trim"
"with_remainder"
"composite"

Code Graph: Dependencies (2)

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

Full Source

SlotDisplays.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.item.crafting.display;
2
3
import net.minecraft.core.Registry;
4
5
public class SlotDisplays {
6
	public static SlotDisplay.Type<?> bootstrap(final Registry<SlotDisplay.Type<?>> registry) {
7
		Registry.register(registry, "empty", SlotDisplay.Empty.TYPE);
8
		Registry.register(registry, "any_fuel", SlotDisplay.AnyFuel.TYPE);
9
		Registry.register(registry, "with_any_potion", SlotDisplay.WithAnyPotion.TYPE);
10
		Registry.register(registry, "only_with_component", SlotDisplay.OnlyWithComponent.TYPE);
11
		Registry.register(registry, "item", SlotDisplay.ItemSlotDisplay.TYPE);
12
		Registry.register(registry, "item_stack", SlotDisplay.ItemStackSlotDisplay.TYPE);
13
		Registry.register(registry, "tag", SlotDisplay.TagSlotDisplay.TYPE);
14
		Registry.register(registry, "dyed", SlotDisplay.DyedSlotDemo.TYPE);
15
		Registry.register(registry, "smithing_trim", SlotDisplay.SmithingTrimDemoSlotDisplay.TYPE);
16
		Registry.register(registry, "with_remainder", SlotDisplay.WithRemainder.TYPE);
17
		return Registry.register(registry, "composite", SlotDisplay.Composite.TYPE);
18
	}
19
}
20

Decompiled Minecraft 26.3 source of SlotDisplays (net/minecraft/world/item/crafting/display/SlotDisplays.java) with Mojang official mappings, stored verbatim on the site.