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 dya
intermediary net/minecraft/class_6760
named net/minecraft/world/tick/OrderedTick
official d
intermediary comp_252
named type
official e
intermediary comp_253
named pos
official f
intermediary comp_254
named triggerTick
official g
intermediary comp_255
named priority
official h
intermediary comp_256
named subTickOrder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator<OrderedTick<?>>
static final Hash.Strategy<OrderedTick<?>>
private final BlockPos
The field for thepos
record component.private final TickPriority
The field for thepriority
record component.private final long
The field for thesubTickOrder
record component.static final Comparator<OrderedTick<?>>
private final long
The field for thetriggerTick
record component.private final T
The field for thetype
record component. -
Constructor Summary
ConstructorDescriptionOrderedTick
(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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.priority()
Returns the value of thepriority
record component.long
Returns the value of thesubTickOrder
record component.final String
toString()
Returns a string representation of this record class.long
Returns the value of thetriggerTick
record component.type()
Returns the value of thetype
record component.
-
Field Details
-
type
The field for thetype
record component. -
pos
The field for thepos
record component. -
triggerTick
private final long triggerTickThe field for thetriggerTick
record component. -
priority
The field for thepriority
record component. -
subTickOrder
private final long subTickOrderThe field for thesubTickOrder
record component. -
TRIGGER_TICK_COMPARATOR
- Mappings:
Namespace Name Mixin selector official a
Ldya;a:Ljava/util/Comparator;
intermediary field_35549
Lnet/minecraft/class_6760;field_35549:Ljava/util/Comparator;
named TRIGGER_TICK_COMPARATOR
Lnet/minecraft/world/tick/OrderedTick;TRIGGER_TICK_COMPARATOR:Ljava/util/Comparator;
-
BASIC_COMPARATOR
- Mappings:
Namespace Name Mixin selector official b
Ldya;b:Ljava/util/Comparator;
intermediary field_35550
Lnet/minecraft/class_6760;field_35550:Ljava/util/Comparator;
named BASIC_COMPARATOR
Lnet/minecraft/world/tick/OrderedTick;BASIC_COMPARATOR:Ljava/util/Comparator;
-
HASH_STRATEGY
- Mappings:
Namespace Name Mixin selector official c
Ldya;c:Lit/unimi/dsi/fastutil/Hash$Strategy;
intermediary field_35551
Lnet/minecraft/class_6760;field_35551:Lit/unimi/dsi/fastutil/Hash$Strategy;
named HASH_STRATEGY
Lnet/minecraft/world/tick/OrderedTick;HASH_STRATEGY:Lit/unimi/dsi/fastutil/Hash$Strategy;
-
-
Constructor Details
-
OrderedTick
- Mappings:
Namespace Name Mixin selector official <init>
Ldya;<init>(Ljava/lang/Object;Lgt;JJ)V
intermediary <init>
Lnet/minecraft/class_6760;<init>(Ljava/lang/Object;Lnet/minecraft/class_2338;JJ)V
named <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 a
Ldya;a(Ljava/lang/Object;Lgt;)Ldya;
intermediary method_39410
Lnet/minecraft/class_6760;method_39410(Ljava/lang/Object;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6760;
named create
Lnet/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 thetype
record component.- Returns:
- the value of the
type
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
triggerTick
public long triggerTick()Returns the value of thetriggerTick
record component.- Returns:
- the value of the
triggerTick
record component
-
priority
Returns the value of thepriority
record component.- Returns:
- the value of the
priority
record component
-
subTickOrder
public long subTickOrder()Returns the value of thesubTickOrder
record component.- Returns:
- the value of the
subTickOrder
record component
-