Record Class TimerQueue.Packed<T>
java.lang.Object
java.lang.Record
net.minecraft.world.level.timers.TimerQueue.Packed<T>
- Enclosing class:
TimerQueue<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TimerQueue.Event.Packed<T>> The field for theeventsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPacked(List<TimerQueue.Event.Packed<T>> events) Creates an instance of aPackedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec<TimerQueue.Packed<T>> codec(com.mojang.serialization.Codec<TimerCallback<T>> callbackCodec) final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
events
The field for theeventsrecord component.
-
-
Constructor Details
-
Packed
Creates an instance of aPackedrecord class.- Parameters:
events- the value for theeventsrecord component
-
-
Method Details
-
codec
public static <T> com.mojang.serialization.Codec<TimerQueue.Packed<T>> codec(com.mojang.serialization.Codec<TimerCallback<T>> callbackCodec) -
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). -
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-