Package net.minecraft.world.ticks
Record Class ScheduledTick<T>
java.lang.Object
java.lang.Record
net.minecraft.world.ticks.ScheduledTick<T>
public record ScheduledTick<T>(T type, BlockPos pos, long triggerTick, TickPriority priority, long subTickOrder)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Comparator<ScheduledTick<?>>static final Comparator<ScheduledTick<?>>private final BlockPosThe field for theposrecord component.private final TickPriorityThe field for thepriorityrecord component.private final longThe field for thesubTickOrderrecord component.private final longThe field for thetriggerTickrecord component.private final TThe field for thetyperecord component.static final it.unimi.dsi.fastutil.Hash.Strategy<ScheduledTick<?>>
- 
Constructor SummaryConstructorsConstructorDescriptionScheduledTick(T p_193383_, BlockPos p_193384_, long p_193385_, long p_193386_) ScheduledTick(T type, BlockPos pos, long triggerTick, TickPriority priority, long subTickOrder) Creates an instance of aScheduledTickrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.priority()Returns the value of thepriorityrecord component.static <T> ScheduledTick<T>longReturns the value of thesubTickOrderrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetriggerTickrecord component.type()Returns the value of thetyperecord component.
- 
Field Details- 
typeThe field for thetyperecord component.
- 
posThe field for theposrecord component.
- 
triggerTickprivate final long triggerTickThe field for thetriggerTickrecord component.
- 
priorityThe field for thepriorityrecord component.
- 
subTickOrderprivate final long subTickOrderThe field for thesubTickOrderrecord component.
- 
DRAIN_ORDER
- 
INTRA_TICK_DRAIN_ORDER
- 
UNIQUE_TICK_HASH
 
- 
- 
Constructor Details- 
ScheduledTick
- 
ScheduledTickpublic ScheduledTick(T type, BlockPos pos, long triggerTick, TickPriority priority, long subTickOrder) Creates an instance of aScheduledTickrecord class.- Parameters:
- type- the value for the- typerecord component
- pos- the value for the- posrecord component
- triggerTick- the value for the- triggerTickrecord component
- priority- the value for the- priorityrecord component
- subTickOrder- the value for the- subTickOrderrecord component
 
 
- 
- 
Method Details- 
probe
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
triggerTickpublic long triggerTick()Returns the value of thetriggerTickrecord component.- Returns:
- the value of the triggerTickrecord component
 
- 
priorityReturns the value of thepriorityrecord component.- Returns:
- the value of the priorityrecord component
 
- 
subTickOrderpublic long subTickOrder()Returns the value of thesubTickOrderrecord component.- Returns:
- the value of the subTickOrderrecord component
 
 
-