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 - acq- named - id- intermediary - comp_3223- official - b- named - values- intermediary - comp_3224- official - c- named - onGround- intermediary - comp_3225- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final PacketCodec<PacketByteBuf, EntityPositionSyncS2CPacket> private final intThe field for theidrecord component.private final booleanThe field for theonGroundrecord component.private final PlayerPositionThe field for thevaluesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionEntityPositionSyncS2CPacket(int int2, PlayerPosition playerPosition, boolean bool) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) static EntityPositionSyncS2CPacketfinal 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.booleanonGround()Returns the value of theonGroundrecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.PacketisWritingErrorSkippable, transitionsNetworkState
- 
Field Details- 
idprivate final int idThe field for theidrecord component.
- 
valuesThe field for thevaluesrecord component.
- 
onGroundprivate final boolean onGroundThe field for theonGroundrecord 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- Lacq;a:Lyn;
 
 
- 
- 
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- Lacq;a(Lbum;)Lacq;
 
- 
getPacketType- Specified by:
- getPacketTypein interface- Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - named - getPacketType- Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;- intermediary - method_65080- Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;- official - a- Lyw;a()Lyy;
 
- 
apply- Specified by:
- applyin interface- Packet<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- Lacq;a(Labl;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
idpublic int id()Returns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
valuesReturns the value of thevaluesrecord component.- Returns:
- the value of the valuesrecord component
 
- 
onGroundpublic boolean onGround()Returns the value of theonGroundrecord component.- Returns:
- the value of the onGroundrecord component
 
 
-