Record Class VehicleMoveC2SPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket
- Record Components:
- position-
- yaw-
- pitch-
- onGround-
- All Implemented Interfaces:
- Packet<ServerPlayPacketListener>
public record VehicleMoveC2SPacket(Vec3d position, float yaw, float pitch, boolean onGround)
extends Record
implements Packet<ServerPlayPacketListener>
- Mappings:
- Namespace - Name - named - net/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket- intermediary - net/minecraft/class_2833- official - ahg- named - position- intermediary - comp_3350- official - b- named - yaw- intermediary - comp_3351- official - c- named - pitch- intermediary - comp_3352- official - d- named - onGround- intermediary - comp_3353- official - e
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final PacketCodec<PacketByteBuf, VehicleMoveC2SPacket> private final booleanThe field for theonGroundrecord component.private final floatThe field for thepitchrecord component.private final Vec3dThe field for thepositionrecord component.private final floatThe field for theyawrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(ServerPlayPacketListener serverPlayPacketListener) final booleanIndicates whether some other object is "equal to" this one.static VehicleMoveC2SPacketfromVehicle(Entity vehicle) final inthashCode()Returns a hash code value for this object.booleanonGround()Returns the value of theonGroundrecord component.floatpitch()Returns the value of thepitchrecord component.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord 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- 
positionThe field for thepositionrecord component.
- 
yawprivate final float yawThe field for theyawrecord component.
- 
pitchprivate final float pitchThe field for thepitchrecord component.
- 
onGroundprivate final boolean onGroundThe field for theonGroundrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_48202- Lnet/minecraft/class_2833;field_48202:Lnet/minecraft/class_9139;- official - a- Lahg;a:Lyn;
 
 
- 
- 
Constructor Details- 
VehicleMoveC2SPacket
 
- 
- 
Method Details- 
fromVehicle- Mappings:
- Namespace - Name - Mixin selector - named - fromVehicle- Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;fromVehicle(Lnet/minecraft/entity/Entity;)Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;- intermediary - method_65307- Lnet/minecraft/class_2833;method_65307(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2833;- official - a- Lahg;a(Lbum;)Lahg;
 
- 
getPacketType- Specified by:
- getPacketTypein interface- Packet<ServerPlayPacketListener>
- 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<ServerPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - named - apply- Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V- intermediary - method_12278- Lnet/minecraft/class_2833;method_12278(Lnet/minecraft/class_2792;)V- official - a- Lahg;a(Lagg;)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 '=='.
- 
positionReturns the value of thepositionrecord component.- Returns:
- the value of the positionrecord component
 
- 
yawpublic float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the yawrecord component
 
- 
pitchpublic float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the pitchrecord component
 
- 
onGroundpublic boolean onGround()Returns the value of theonGroundrecord component.- Returns:
- the value of the onGroundrecord component
 
 
-