ClockTimeMarkers .java

net.minecraft.world.clock.ClockTimeMarkers (interface): members: ROLL_VILLAGE_SIEGE, WAKE_UP_FROM_SLEEP, MIDNIGHT, NIGHT, NOON, DAY, ROOT_ID, createKey.

net.minecraft.world.clockinterface20 linescommon892 B

API Surface (0)

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

Fields & Constants (7)

ROOT_ID
DAY
NOON
NIGHT
MIDNIGHT
WAKE_UP_FROM_SLEEP
ROLL_VILLAGE_SIEGE

String literals (6)

"clock_time_marker"
"noon"
"night"
"midnight"
"wake_up_from_sleep"
"roll_village_siege"

Code Graph: Dependencies (4)

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

Full Source

ClockTimeMarkers.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.clock;
2
3
import net.minecraft.core.Registry;
4
import net.minecraft.resources.Identifier;
5
import net.minecraft.resources.ResourceKey;
6
7
public interface ClockTimeMarkers {
8
	ResourceKey<? extends Registry<ClockTimeMarker>> ROOT_ID = ResourceKey.createRegistryKey(Identifier.withDefaultNamespace("clock_time_marker"));
9
	ResourceKey<ClockTimeMarker> DAY = createKey("day");
10
	ResourceKey<ClockTimeMarker> NOON = createKey("noon");
11
	ResourceKey<ClockTimeMarker> NIGHT = createKey("night");
12
	ResourceKey<ClockTimeMarker> MIDNIGHT = createKey("midnight");
13
	ResourceKey<ClockTimeMarker> WAKE_UP_FROM_SLEEP = createKey("wake_up_from_sleep");
14
	ResourceKey<ClockTimeMarker> ROLL_VILLAGE_SIEGE = createKey("roll_village_siege");
15
16
	static ResourceKey<ClockTimeMarker> createKey(final String name) {
17
		return ResourceKey.create(ROOT_ID, Identifier.withDefaultNamespace(name));
18
	}
19
}
20

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