Record Class DataTracker.class_7834<T>

java.lang.Object
java.lang.Record
net.minecraft.entity.data.DataTracker.class_7834<T>
Record Components:
id -
serializer -
value -
Enclosing class:
DataTracker

public static record DataTracker.class_7834<T>(int id, TrackedDataHandler<T> serializer, T value) extends Record
Mappings:
Namespace Name
official abe$b
intermediary net/minecraft/class_2945$class_7834
named net/minecraft/entity/data/DataTracker$class_7834
official a
intermediary comp_1115
named id
official b
intermediary comp_1116
named serializer
official c
intermediary comp_1117
named value
  • Field Details

    • id

      private final int id
      The field for the id record component.
    • serializer

      private final TrackedDataHandler<T> serializer
      The field for the serializer record component.
    • value

      private final T value
      The field for the value record component.
  • Constructor Details

  • Method Details

    • method_46360

      public static <T> DataTracker.class_7834<T> method_46360(TrackedData<T> trackedData, T t)
      Mappings:
      Namespace Name Mixin selector
      official a Labe$b;a(Labb;Ljava/lang/Object;)Labe$b;
      intermediary method_46360 Lnet/minecraft/class_2945$class_7834;method_46360(Lnet/minecraft/class_2940;Ljava/lang/Object;)Lnet/minecraft/class_2945$class_7834;
      named method_46360 Lnet/minecraft/entity/data/DataTracker$class_7834;method_46360(Lnet/minecraft/entity/data/TrackedData;Ljava/lang/Object;)Lnet/minecraft/entity/data/DataTracker$class_7834;
    • method_46361

      public void method_46361(PacketByteBuf packetByteBuf)
      Mappings:
      Namespace Name Mixin selector
      official a Labe$b;a(Lrq;)V
      intermediary method_46361 Lnet/minecraft/class_2945$class_7834;method_46361(Lnet/minecraft/class_2540;)V
      named method_46361 Lnet/minecraft/entity/data/DataTracker$class_7834;method_46361(Lnet/minecraft/network/PacketByteBuf;)V
    • method_46362

      public static DataTracker.class_7834<?> method_46362(PacketByteBuf packetByteBuf, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Labe$b;a(Lrq;I)Labe$b;
      intermediary method_46362 Lnet/minecraft/class_2945$class_7834;method_46362(Lnet/minecraft/class_2540;I)Lnet/minecraft/class_2945$class_7834;
      named method_46362 Lnet/minecraft/entity/data/DataTracker$class_7834;method_46362(Lnet/minecraft/network/PacketByteBuf;I)Lnet/minecraft/entity/data/DataTracker$class_7834;
    • method_46363

      private static <T> DataTracker.class_7834<T> method_46363(PacketByteBuf packetByteBuf, int int2, TrackedDataHandler<T> trackedDataHandler)
      Mappings:
      Namespace Name Mixin selector
      official a Labe$b;a(Lrq;ILabc;)Labe$b;
      intermediary method_46363 Lnet/minecraft/class_2945$class_7834;method_46363(Lnet/minecraft/class_2540;ILnet/minecraft/class_2941;)Lnet/minecraft/class_2945$class_7834;
      named method_46363 Lnet/minecraft/entity/data/DataTracker$class_7834;method_46363(Lnet/minecraft/network/PacketByteBuf;ILnet/minecraft/entity/data/TrackedDataHandler;)Lnet/minecraft/entity/data/DataTracker$class_7834;
    • 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.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • serializer

      public TrackedDataHandler<T> serializer()
      Returns the value of the serializer record component.
      Returns:
      the value of the serializer record component
    • value

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