Record Class EntityTrackerUpdateS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.EntityTrackerUpdateS2CPacket
- Record Components:
id-trackedValues-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record EntityTrackerUpdateS2CPacket(int id, List<DataTracker.SerializedEntry<?>> trackedValues)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacketintermediary net/minecraft/class_2739official aeznamed idintermediary comp_1127official cnamed trackedValuesintermediary comp_1128official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<RegistryByteBuf, EntityTrackerUpdateS2CPacket> private final intThe field for theidrecord component.static final intprivate final List<DataTracker.SerializedEntry<?>> The field for thetrackedValuesrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionEntityTrackerUpdateS2CPacket(int id, List<DataTracker.SerializedEntry<?>> list) private -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) final 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.private static List<DataTracker.SerializedEntry<?>> read(RegistryByteBuf buf) final StringtoString()Returns a string representation of this record class.Returns the value of thetrackedValuesrecord component.private static voidwrite(List<DataTracker.SerializedEntry<?>> trackedValues, RegistryByteBuf buf) private voidwrite(RegistryByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
id
private final int idThe field for theidrecord component. -
trackedValues
The field for thetrackedValuesrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_47979Lnet/minecraft/class_2739;field_47979:Lnet/minecraft/class_9139;official aLaez;a:Lyx;
-
MARKER_ID
public static final int MARKER_ID- See Also:
- Mappings:
Namespace Name Mixin selector named MARKER_IDLnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;MARKER_ID:Iintermediary field_40850Lnet/minecraft/class_2739;field_40850:Iofficial bLaez;b:I
-
-
Constructor Details
-
EntityTrackerUpdateS2CPacket
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)Vintermediary <init>Lnet/minecraft/class_2739;<init>(Lnet/minecraft/class_9129;)Vofficial <init>Laez;<init>(Lwk;)V
-
EntityTrackerUpdateS2CPacket
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;<init>(ILjava/util/List;)Vintermediary <init>Lnet/minecraft/class_2739;<init>(ILjava/util/List;)Vofficial <init>Laez;<init>(ILjava/util/List;)V
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;write(Ljava/util/List;Lnet/minecraft/network/RegistryByteBuf;)Vintermediary method_46615Lnet/minecraft/class_2739;method_46615(Ljava/util/List;Lnet/minecraft/class_9129;)Vofficial aLaez;a(Ljava/util/List;Lwk;)V
-
read
- Mappings:
Namespace Name Mixin selector named readLnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;read(Lnet/minecraft/network/RegistryByteBuf;)Ljava/util/List;intermediary method_46616Lnet/minecraft/class_2739;method_46616(Lnet/minecraft/class_9129;)Ljava/util/List;official aLaez;a(Lwk;)Ljava/util/List;
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)Vintermediary method_55926Lnet/minecraft/class_2739;method_55926(Lnet/minecraft/class_9129;)Vofficial bLaez;b(Lwk;)V
-
getPacketId
- Specified by:
getPacketIdin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketIdLnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;intermediary method_55846Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;official aLzg;a()Lzi;
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)Vintermediary method_11808Lnet/minecraft/class_2739;method_11808(Lnet/minecraft/class_2602;)Vofficial aLaez;a(Labu;)V
-
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
-
trackedValues
Returns the value of thetrackedValuesrecord component.- Returns:
- the value of the
trackedValuesrecord component
-