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/EntityPositionSyncS2CPacketintermediary net/minecraft/class_10264official adjnamed idintermediary comp_3223official bnamed valuesintermediary comp_3224official cnamed onGroundintermediary comp_3225official d
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionEntityPositionSyncS2CPacket(int int2, PlayerPosition playerPosition, boolean bool) -
Method Summary
Modifier 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.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. -
values
The field for thevaluesrecord component. -
onGround
private final boolean onGroundThe field for theonGroundrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/s2c/play/EntityPositionSyncS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_54515Lnet/minecraft/class_10264;field_54515:Lnet/minecraft/class_9139;official aLadj;a:Lze;
-
-
Constructor Details
-
EntityPositionSyncS2CPacket
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/network/packet/s2c/play/EntityPositionSyncS2CPacket;create(Lnet/minecraft/entity/Entity;)Lnet/minecraft/network/packet/s2c/play/EntityPositionSyncS2CPacket;intermediary method_64558Lnet/minecraft/class_10264;method_64558(Lnet/minecraft/class_1297;)Lnet/minecraft/class_10264;official aLadj;a(Lbxe;)Ladj;
-
getPacketType
- Specified by:
getPacketTypein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketTypeLnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;intermediary method_65080Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;official aLzo;a()Lzq;
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/s2c/play/EntityPositionSyncS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)Vintermediary method_64557Lnet/minecraft/class_10264;method_64557(Lnet/minecraft/class_2602;)Vofficial aLadj;a(Lacf;)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
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
onGround
public boolean onGround()Returns the value of theonGroundrecord component.- Returns:
- the value of the
onGroundrecord component
-