Record Class EntityPositionSyncS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.EntityPositionSyncS2CPacket
- Record Components:
id
-values
-onGround
-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record EntityPositionSyncS2CPacket(int id, PlayerPosition values, boolean onGround)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/EntityPositionSyncS2CPacket
intermediary net/minecraft/class_10264
official adw
named id
intermediary comp_3223
official b
named values
intermediary comp_3224
official c
named onGround
intermediary comp_3225
official d
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PacketCodec
<PacketByteBuf, EntityPositionSyncS2CPacket> private final int
The field for theid
record component.private final boolean
The field for theonGround
record component.private final PlayerPosition
The field for thevalues
record component. -
Constructor Summary
ConstructorDescriptionEntityPositionSyncS2CPacket
(int int2, PlayerPosition playerPosition, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) static EntityPositionSyncS2CPacket
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.boolean
onGround()
Returns the value of theonGround
record component.final String
toString()
Returns a string representation of this record class.values()
Returns the value of thevalues
record component.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, transitionsNetworkState
-
Field Details
-
id
private final int idThe field for theid
record component. -
values
The field for thevalues
record component. -
onGround
private final boolean onGroundThe field for theonGround
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/s2c/play/EntityPositionSyncS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_54515
Lnet/minecraft/class_10264;field_54515:Lnet/minecraft/class_9139;
official a
Ladw;a:Lzt;
-
-
Constructor Details
-
EntityPositionSyncS2CPacket
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/network/packet/s2c/play/EntityPositionSyncS2CPacket;create(Lnet/minecraft/entity/Entity;)Lnet/minecraft/network/packet/s2c/play/EntityPositionSyncS2CPacket;
intermediary method_64558
Lnet/minecraft/class_10264;method_64558(Lnet/minecraft/class_1297;)Lnet/minecraft/class_10264;
official a
Ladw;a(Lbvj;)Ladw;
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named getPacketId
Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
intermediary method_55846
Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
official a
Laac;a()Laae;
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/s2c/play/EntityPositionSyncS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
intermediary method_64557
Lnet/minecraft/class_10264;method_64557(Lnet/minecraft/class_2602;)V
official a
Ladw;a(Lacr;)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
-
values
Returns the value of thevalues
record component.- Returns:
- the value of the
values
record component
-
onGround
public boolean onGround()Returns the value of theonGround
record component.- Returns:
- the value of the
onGround
record component
-