PackedClockStates .java

net.minecraft.world.clock.PackedClockStates (record, 12 lines): record with 1 component. members: clocks, EMPTY, CODEC. imports: Holder.

net.minecraft.world.clockrecord12 linescommon461 B

API Surface (1)

record PackedClockStates(Map<Holder<WorldClock>, ClockState> clocks)

Fields & Constants (2)

EMPTY
CODEC

Code Graph: Dependencies (3)

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

Full Source

PackedClockStates.java12 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.clock;
2
3
import com.mojang.serialization.Codec;
4
import java.util.Map;
5
import net.minecraft.core.Holder;
6
7
public record PackedClockStates(Map<Holder<WorldClock>, ClockState> clocks) {
8
	public static final PackedClockStates EMPTY = new PackedClockStates(Map.of());
9
	public static final Codec<PackedClockStates> CODEC = Codec.unboundedMap(WorldClock.CODEC, ClockState.CODEC)
10
		.xmap(PackedClockStates::new, PackedClockStates::clocks);
11
}
12

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