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 official yj
intermediary net/minecraft/class_2739
named net/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket
official b
intermediary comp_1127
named id
official c
intermediary comp_1128
named trackedValues
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for theid
record component.static final int
private final List<DataTracker.SerializedEntry<?>>
The field for thetrackedValues
record component. -
Constructor Summary
ConstructorDescriptionEntityTrackerUpdateS2CPacket
(int id, List<DataTracker.SerializedEntry<?>> list) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.private static List<DataTracker.SerializedEntry<?>>
read
(PacketByteBuf buf) final String
toString()
Returns a string representation of this record class.Returns the value of thetrackedValues
record component.private static void
write
(List<DataTracker.SerializedEntry<?>> trackedValues, PacketByteBuf buf) void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable
-
Field Details
-
id
private final int idThe field for theid
record component. -
trackedValues
The field for thetrackedValues
record component. -
MARKER_ID
public static final int MARKER_ID- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lyj;a:I
intermediary field_40850
Lnet/minecraft/class_2739;field_40850:I
named MARKER_ID
Lnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;MARKER_ID:I
-
-
Constructor Details
-
EntityTrackerUpdateS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lyj;<init>(Lss;)V
intermediary <init>
Lnet/minecraft/class_2739;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
EntityTrackerUpdateS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lyj;<init>(ILjava/util/List;)V
intermediary <init>
Lnet/minecraft/class_2739;<init>(ILjava/util/List;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;<init>(ILjava/util/List;)V
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official a
Lyj;a(Ljava/util/List;Lss;)V
intermediary method_46615
Lnet/minecraft/class_2739;method_46615(Ljava/util/List;Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;write(Ljava/util/List;Lnet/minecraft/network/PacketByteBuf;)V
-
read
- Mappings:
Namespace Name Mixin selector official b
Lyj;b(Lss;)Ljava/util/List;
intermediary method_46616
Lnet/minecraft/class_2739;method_46616(Lnet/minecraft/class_2540;)Ljava/util/List;
named read
Lnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;read(Lnet/minecraft/network/PacketByteBuf;)Ljava/util/List;
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lvb;a(Lss;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lyj;a(Lve;)V
intermediary method_11808
Lnet/minecraft/class_2739;method_11808(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/EntityTrackerUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)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 theid
record component.- Returns:
- the value of the
id
record component
-
trackedValues
Returns the value of thetrackedValues
record component.- Returns:
- the value of the
trackedValues
record component
-