Package net.minecraft.entity.data
Record Class DataTracker.SerializedEntry<T>
java.lang.Object
java.lang.Record
net.minecraft.entity.data.DataTracker.SerializedEntry<T>
- Record Components:
id-handler-value-
- Enclosing class:
DataTracker
public static record DataTracker.SerializedEntry<T>(int id, TrackedDataHandler<T> handler, T value)
extends Record
- Mappings:
Namespace Name official acb$bintermediary net/minecraft/class_2945$class_7834named net/minecraft/entity/data/DataTracker$SerializedEntryofficial aintermediary comp_1115named idofficial bintermediary comp_1116named handlerofficial cintermediary comp_1117named value
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static DataTracker.SerializedEntry<?>fromBuf(PacketByteBuf buf, int id) private static <T> DataTracker.SerializedEntry<T>fromBuf(PacketByteBuf buf, int id, TrackedDataHandler<T> handler) handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.static <T> DataTracker.SerializedEntry<T>of(TrackedData<T> data, T value) final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
SerializedEntry
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official aLacb$b;a(Laby;Ljava/lang/Object;)Lacb$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 ofLnet/minecraft/entity/data/DataTracker$SerializedEntry;of(Lnet/minecraft/entity/data/TrackedData;Ljava/lang/Object;)Lnet/minecraft/entity/data/DataTracker$SerializedEntry;
-
write
- Mappings:
Namespace Name Mixin selector official aLacb$b;a(Lsf;)Vintermediary method_46361Lnet/minecraft/class_2945$class_7834;method_46361(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/entity/data/DataTracker$SerializedEntry;write(Lnet/minecraft/network/PacketByteBuf;)V
-
fromBuf
- Mappings:
Namespace Name Mixin selector official aLacb$b;a(Lsf;I)Lacb$b;intermediary method_46362Lnet/minecraft/class_2945$class_7834;method_46362(Lnet/minecraft/class_2540;I)Lnet/minecraft/class_2945$class_7834;named fromBufLnet/minecraft/entity/data/DataTracker$SerializedEntry;fromBuf(Lnet/minecraft/network/PacketByteBuf;I)Lnet/minecraft/entity/data/DataTracker$SerializedEntry;
-
fromBuf
private static <T> DataTracker.SerializedEntry<T> fromBuf(PacketByteBuf buf, int id, TrackedDataHandler<T> handler) - Mappings:
Namespace Name Mixin selector official aLacb$b;a(Lsf;ILabz;)Lacb$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 fromBufLnet/minecraft/entity/data/DataTracker$SerializedEntry;fromBuf(Lnet/minecraft/network/PacketByteBuf;ILnet/minecraft/entity/data/TrackedDataHandler;)Lnet/minecraft/entity/data/DataTracker$SerializedEntry;
-
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
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-