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
named net/minecraft/world/tick/OrderedTick
intermediary net/minecraft/class_6760
official eyt
named type
intermediary comp_252
official d
named pos
intermediary comp_253
official e
named triggerTick
intermediary comp_254
official f
named priority
intermediary comp_255
official g
named subTickOrder
intermediary comp_256
official h
  • Field Details

    • type

      private final T type
      The field for the type record component.
    • pos

      private final BlockPos pos
      The field for the pos record component.
    • triggerTick

      private final long triggerTick
      The field for the triggerTick record component.
    • priority

      private final TickPriority priority
      The field for the priority record component.
    • subTickOrder

      private final long subTickOrder
      The field for the subTickOrder record component.
    • TRIGGER_TICK_COMPARATOR

      public static final Comparator<OrderedTick<?>> TRIGGER_TICK_COMPARATOR
      Mappings:
      Namespace Name Mixin selector
      named TRIGGER_TICK_COMPARATOR Lnet/minecraft/world/tick/OrderedTick;TRIGGER_TICK_COMPARATOR:Ljava/util/Comparator;
      intermediary field_35549 Lnet/minecraft/class_6760;field_35549:Ljava/util/Comparator;
      official a Leyt;a:Ljava/util/Comparator;
    • BASIC_COMPARATOR

      public static final Comparator<OrderedTick<?>> BASIC_COMPARATOR
      Mappings:
      Namespace Name Mixin selector
      named BASIC_COMPARATOR Lnet/minecraft/world/tick/OrderedTick;BASIC_COMPARATOR:Ljava/util/Comparator;
      intermediary field_35550 Lnet/minecraft/class_6760;field_35550:Ljava/util/Comparator;
      official b Leyt;b:Ljava/util/Comparator;
    • HASH_STRATEGY

      public static final Hash.Strategy<OrderedTick<?>> HASH_STRATEGY
      Mappings:
      Namespace Name Mixin selector
      named HASH_STRATEGY Lnet/minecraft/world/tick/OrderedTick;HASH_STRATEGY:Lit/unimi/dsi/fastutil/Hash$Strategy;
      intermediary field_35551 Lnet/minecraft/class_6760;field_35551:Lit/unimi/dsi/fastutil/Hash$Strategy;
      official c Leyt;c:Lit/unimi/dsi/fastutil/Hash$Strategy;
  • Constructor Details

    • OrderedTick

      public OrderedTick(T type, BlockPos pos, long triggerTick, long subTickOrder)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/tick/OrderedTick;<init>(Ljava/lang/Object;Lnet/minecraft/util/math/BlockPos;JJ)V
      intermediary <init> Lnet/minecraft/class_6760;<init>(Ljava/lang/Object;Lnet/minecraft/class_2338;JJ)V
      official <init> Leyt;<init>(Ljava/lang/Object;Ljd;JJ)V
    • OrderedTick

      public OrderedTick(T t, BlockPos blockPos, long long2, TickPriority tickPriority, long long3)
  • Method Details

    • create

      public static <T> OrderedTick<T> create(T type, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/world/tick/OrderedTick;create(Ljava/lang/Object;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/tick/OrderedTick;
      intermediary method_39410 Lnet/minecraft/class_6760;method_39410(Ljava/lang/Object;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6760;
      official a Leyt;a(Ljava/lang/Object;Ljd;)Leyt;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • type

      public T type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • pos

      public BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • triggerTick

      public long triggerTick()
      Returns the value of the triggerTick record component.
      Returns:
      the value of the triggerTick record component
    • priority

      public TickPriority priority()
      Returns the value of the priority record component.
      Returns:
      the value of the priority record component
    • subTickOrder

      public long subTickOrder()
      Returns the value of the subTickOrder record component.
      Returns:
      the value of the subTickOrder record component