Package net.minecraft.world.tick
Record Class OrderedTick<T>
java.lang.Object
java.lang.Record
net.minecraft.world.tick.OrderedTick<T>
- Record Components:
type-pos-triggerTick-priority-subTickOrder-
public record OrderedTick<T>(T type, BlockPos pos, long triggerTick, TickPriority priority, long subTickOrder)
extends Record
- Mappings:
Namespace Name official eflintermediary net/minecraft/class_6760named net/minecraft/world/tick/OrderedTickofficial dintermediary comp_252named typeofficial eintermediary comp_253named posofficial fintermediary comp_254named triggerTickofficial gintermediary comp_255named priorityofficial hintermediary comp_256named subTickOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<OrderedTick<?>>static final Hash.Strategy<OrderedTick<?>>private final BlockPosThe field for theposrecord component.private final TickPriorityThe field for thepriorityrecord component.private final longThe field for thesubTickOrderrecord component.static final Comparator<OrderedTick<?>>private final longThe field for thetriggerTickrecord component.private final TThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOrderedTick(T type, BlockPos pos, long triggerTick, long subTickOrder) OrderedTick(T t, BlockPos blockPos, long long2, TickPriority tickPriority, long long3) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> OrderedTick<T>final 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.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
-
type
The field for thetyperecord component. -
pos
The field for theposrecord component. -
triggerTick
private final long triggerTickThe field for thetriggerTickrecord component. -
priority
The field for thepriorityrecord component. -
subTickOrder
private final long subTickOrderThe field for thesubTickOrderrecord component. -
TRIGGER_TICK_COMPARATOR
- Mappings:
Namespace Name Mixin selector official aLefl;a:Ljava/util/Comparator;intermediary field_35549Lnet/minecraft/class_6760;field_35549:Ljava/util/Comparator;named TRIGGER_TICK_COMPARATORLnet/minecraft/world/tick/OrderedTick;TRIGGER_TICK_COMPARATOR:Ljava/util/Comparator;
-
BASIC_COMPARATOR
- Mappings:
Namespace Name Mixin selector official bLefl;b:Ljava/util/Comparator;intermediary field_35550Lnet/minecraft/class_6760;field_35550:Ljava/util/Comparator;named BASIC_COMPARATORLnet/minecraft/world/tick/OrderedTick;BASIC_COMPARATOR:Ljava/util/Comparator;
-
HASH_STRATEGY
- Mappings:
Namespace Name Mixin selector official cLefl;c:Lit/unimi/dsi/fastutil/Hash$Strategy;intermediary field_35551Lnet/minecraft/class_6760;field_35551:Lit/unimi/dsi/fastutil/Hash$Strategy;named HASH_STRATEGYLnet/minecraft/world/tick/OrderedTick;HASH_STRATEGY:Lit/unimi/dsi/fastutil/Hash$Strategy;
-
-
Constructor Details
-
OrderedTick
- Mappings:
Namespace Name Mixin selector official <init>Lefl;<init>(Ljava/lang/Object;Lgu;JJ)Vintermediary <init>Lnet/minecraft/class_6760;<init>(Ljava/lang/Object;Lnet/minecraft/class_2338;JJ)Vnamed <init>Lnet/minecraft/world/tick/OrderedTick;<init>(Ljava/lang/Object;Lnet/minecraft/util/math/BlockPos;JJ)V
-
OrderedTick
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official aLefl;a(Ljava/lang/Object;Lgu;)Lefl;intermediary method_39410Lnet/minecraft/class_6760;method_39410(Ljava/lang/Object;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6760;named createLnet/minecraft/world/tick/OrderedTick;create(Ljava/lang/Object;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/tick/OrderedTick;
-
toString
Returns 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. -
hashCode
public 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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
triggerTick
public long triggerTick()Returns the value of thetriggerTickrecord component.- Returns:
- the value of the
triggerTickrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
subTickOrder
public long subTickOrder()Returns the value of thesubTickOrderrecord component.- Returns:
- the value of the
subTickOrderrecord component
-