Package net.minecraft.entity.data
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$bintermediary net/minecraft/class_2945$class_7834named net/minecraft/entity/data/DataTracker$class_7834official aintermediary comp_1115named idofficial bintermediary comp_1116named serializerofficial cintermediary comp_1117named value
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theidrecord component.private final TrackedDataHandler<T>The field for theserializerrecord component.private final TThe field for thevaluerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.static <T> DataTracker.class_7834<T>method_46360(TrackedData<T> trackedData, T t) voidmethod_46361(PacketByteBuf packetByteBuf) static DataTracker.class_7834<?>method_46362(PacketByteBuf packetByteBuf, int int2) private static <T> DataTracker.class_7834<T>method_46363(PacketByteBuf packetByteBuf, int int2, TrackedDataHandler<T> trackedDataHandler) Returns the value of theserializerrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
id
private final int idThe field for theidrecord component. -
serializer
The field for theserializerrecord component. -
value
The field for thevaluerecord component.
-
-
Constructor Details
-
class_7834
-
-
Method Details
-
method_46360
- Mappings:
Namespace Name Mixin selector official aLabe$b;a(Labb;Ljava/lang/Object;)Labe$b;intermediary method_46360Lnet/minecraft/class_2945$class_7834;method_46360(Lnet/minecraft/class_2940;Ljava/lang/Object;)Lnet/minecraft/class_2945$class_7834;named method_46360Lnet/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
- Mappings:
Namespace Name Mixin selector official aLabe$b;a(Lrq;)Vintermediary method_46361Lnet/minecraft/class_2945$class_7834;method_46361(Lnet/minecraft/class_2540;)Vnamed method_46361Lnet/minecraft/entity/data/DataTracker$class_7834;method_46361(Lnet/minecraft/network/PacketByteBuf;)V
-
method_46362
- Mappings:
Namespace Name Mixin selector official aLabe$b;a(Lrq;I)Labe$b;intermediary method_46362Lnet/minecraft/class_2945$class_7834;method_46362(Lnet/minecraft/class_2540;I)Lnet/minecraft/class_2945$class_7834;named method_46362Lnet/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 aLabe$b;a(Lrq;ILabc;)Labe$b;intermediary method_46363Lnet/minecraft/class_2945$class_7834;method_46363(Lnet/minecraft/class_2540;ILnet/minecraft/class_2941;)Lnet/minecraft/class_2945$class_7834;named method_46363Lnet/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
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 '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
serializer
Returns the value of theserializerrecord component.- Returns:
- the value of the
serializerrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-