Record Class PackedClockStates
java.lang.Object
java.lang.Record
net.minecraft.world.clock.PackedClockStates
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Holder<WorldClock>, ClockState> The field for theclocksrecord component.static final com.mojang.serialization.Codec<PackedClockStates> static final PackedClockStates -
Constructor Summary
ConstructorsConstructorDescriptionPackedClockStates(Map<Holder<WorldClock>, ClockState> clocks) Creates an instance of aPackedClockStatesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclocks()Returns the value of theclocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
clocks
The field for theclocksrecord component. -
EMPTY
-
CODEC
-
-
Constructor Details
-
PackedClockStates
Creates an instance of aPackedClockStatesrecord class.- Parameters:
clocks- the value for theclocksrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
clocks
Returns the value of theclocksrecord component.- Returns:
- the value of the
clocksrecord component
-