Package net.minecraft.world.tick
Record Class Tick<T>
java.lang.Object
java.lang.Record
net.minecraft.world.tick.Tick<T>
- Record Components:
type-pos-delay-priority-
- Mappings:
Namespace Name named net/minecraft/world/tick/Tickintermediary net/minecraft/class_6759official fhtnamed typeintermediary comp_248official bnamed posintermediary comp_249official cnamed delayintermediary comp_250official dnamed priorityintermediary comp_251official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedelayrecord component.static final Hash.Strategy<Tick<?>> private final BlockPosThe field for theposrecord component.private final TickPriorityThe field for thepriorityrecord component.private final TThe field for thetyperecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tick<T> static <T> com.mojang.serialization.Codec<Tick<T>> createCodec(com.mojang.serialization.Codec<T> typeCodec) createOrderedTick(long time, long subTickOrder) intdelay()Returns the value of thedelayrecord component.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.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
pos
The field for theposrecord component. -
delay
private final int delayThe field for thedelayrecord component. -
priority
The field for thepriorityrecord component. -
HASH_STRATEGY
- Mappings:
Namespace Name Mixin selector named HASH_STRATEGYLnet/minecraft/world/tick/Tick;HASH_STRATEGY:Lit/unimi/dsi/fastutil/Hash$Strategy;intermediary field_35542Lnet/minecraft/class_6759;field_35542:Lit/unimi/dsi/fastutil/Hash$Strategy;official aLfht;a:Lit/unimi/dsi/fastutil/Hash$Strategy;
-
-
Constructor Details
-
Tick
-
-
Method Details
-
createCodec
public static <T> com.mojang.serialization.Codec<Tick<T>> createCodec(com.mojang.serialization.Codec<T> typeCodec) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/world/tick/Tick;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;intermediary method_67719Lnet/minecraft/class_6759;method_67719(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;official aLfht;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
filter
- Mappings:
Namespace Name Mixin selector named filterLnet/minecraft/world/tick/Tick;filter(Ljava/util/List;Lnet/minecraft/util/math/ChunkPos;)Ljava/util/List;intermediary method_67722Lnet/minecraft/class_6759;method_67722(Ljava/util/List;Lnet/minecraft/class_1923;)Ljava/util/List;official aLfht;a(Ljava/util/List;Ldjo;)Ljava/util/List;
-
createOrderedTick
- Mappings:
Namespace Name Mixin selector named createOrderedTickLnet/minecraft/world/tick/Tick;createOrderedTick(JJ)Lnet/minecraft/world/tick/OrderedTick;intermediary method_39400Lnet/minecraft/class_6759;method_39400(JJ)Lnet/minecraft/class_6760;official aLfht;a(JJ)Lfhu;
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/world/tick/Tick;create(Ljava/lang/Object;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/tick/Tick;intermediary method_39402Lnet/minecraft/class_6759;method_39402(Ljava/lang/Object;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6759;official aLfht;a(Ljava/lang/Object;Liw;)Lfht;
-
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
-
delay
public int delay()Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-