DefaultedRegistry .java

net.minecraft.core.DefaultedRegistry (interface, 19 lines): members: getDefaultKey, getKey, byId, getValue. imports: NonNull, Identifier, Nullable.

net.minecraft.coreinterface19 linescommonextends Registry<T>395 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (2)

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

Full Source

DefaultedRegistry.java19 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.core;
2
3
import net.minecraft.resources.Identifier;
4
import org.jspecify.annotations.NonNull;
5
import org.jspecify.annotations.Nullable;
6
7
public interface DefaultedRegistry<T> extends Registry<T> {
8
	@Override
9
	@NonNull Identifier getKey(T thing);
10
11
	@Override
12
	@NonNull T getValue(@Nullable Identifier key);
13
14
	@Override
15
	@NonNull T byId(int id);
16
17
	Identifier getDefaultKey();
18
}
19

Decompiled Minecraft 26.3 source of DefaultedRegistry (net/minecraft/core/DefaultedRegistry.java) with Mojang official mappings, stored verbatim on the site.