WorldClocks .java

net.minecraft.world.clock.WorldClocks (interface): members: THE_END, OVERWORLD, key, bootstrap. strings: "the_end", "overworld". imports: BootstrapContext.

net.minecraft.world.clockinterface21 linescommon691 B

API Surface (0)

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

Fields & Constants (2)

OVERWORLD
THE_END

String literals (2)

"overworld"
"the_end"

Code Graph: Dependencies (5)

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

Full Source

WorldClocks.java21 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.clock;
2
3
import net.minecraft.core.registries.Registries;
4
import net.minecraft.data.worldgen.BootstrapContext;
5
import net.minecraft.resources.Identifier;
6
import net.minecraft.resources.ResourceKey;
7
8
public interface WorldClocks {
9
	ResourceKey<WorldClock> OVERWORLD = key("overworld");
10
	ResourceKey<WorldClock> THE_END = key("the_end");
11
12
	static void bootstrap(final BootstrapContext<WorldClock> context) {
13
		context.register(OVERWORLD, new WorldClock());
14
		context.register(THE_END, new WorldClock());
15
	}
16
17
	private static ResourceKey<WorldClock> key(final String id) {
18
		return ResourceKey.create(Registries.WORLD_CLOCK, Identifier.withDefaultNamespace(id));
19
	}
20
}
21

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