Skip to main content

VehicleMovePacket

class

Declaration​

[ProtocolSupport(735, 777)]
[Packet("play.toServer.vehicle_move", PacketPhase.Play, PacketDirection.Serverbound)]
[PacketField("X", "double")]
[PacketField("Y", "double")]
[PacketField("Z", "double")]
[PacketField("Yaw", "float")]
[PacketField("Pitch", "float")]
[PacketField("OnGround", "bool", Group = "V769_Last", From = 769)]
public sealed record VehicleMovePacket : IPacket<VehicleMovePacket>, IProtocolType<VehicleMovePacket>, IPacket
NamespaceMcProtoNet.Protocol.Packets.Play.Serverbound
AssemblyMcProtoNet.Protocol.dll
Sourcesrc/McProtoNet.Protocol/Generated/Packets/Play/Serverbound/VehicleMovePacket.cs#L6 ↗

Implements: IPacket<VehicleMovePacket>, IProtocolType<VehicleMovePacket>, IPacket

Constructors​

SignatureDescription
VehicleMovePacket(double X, double Y, double Z, float Yaw, float Pitch, VehicleMovePacket.V769_LastLayer? V769_Last = null)-

VehicleMovePacket(double, double, double, float, float, V769_LastLayer?)​

public VehicleMovePacket(double X, double Y, double Z, float Yaw, float Pitch, VehicleMovePacket.V769_LastLayer? V769_Last = null)

Parameters: X (double), Y (double), Z (double), Yaw (float), Pitch (float), V769_Last (VehicleMovePacket.V769_LastLayer?)

Properties​

SignatureDescription
static PacketIdentity IdentityGets the identity of the packet type.
float Pitch-
VehicleMovePacket.V769_LastLayer? V769_Last-
double X-
double Y-
float Yaw-
double Z-

Identity​

public static PacketIdentity Identity { get; }

Gets the identity of the packet type.

Returns: PacketIdentity

Pitch​

public float Pitch { get; init; }

Returns: float

V769_Last​

public VehicleMovePacket.V769_LastLayer? V769_Last { get; init; }

Returns: VehicleMovePacket.V769_LastLayer?

X​

public double X { get; init; }

Returns: double

Y​

public double Y { get; init; }

Returns: double

Yaw​

public float Yaw { get; init; }

Returns: float

Z​

public double Z { get; init; }

Returns: double

Methods​

SignatureDescription
static int GetPacketId(int protocolVersion)-
static VehicleMovePacket Read(ref MinecraftPrimitiveReader reader, int protocolVersion)Reads a value of type VehicleMovePacket from the specified reader.
static bool TryGetPacketId(int protocolVersion, out int id)Attempts to get the wire id of the packet for the specified protocol version.
void Write(MinecraftPrimitiveWriter writer, int protocolVersion)Writes the current value to the specified writer.

GetPacketId(int)​

public static int GetPacketId(int protocolVersion)

Parameters: protocolVersion (int)

Returns: int

Read(ref MinecraftPrimitiveReader, int)​

public static VehicleMovePacket Read(ref MinecraftPrimitiveReader reader, int protocolVersion)

Reads a value of type VehicleMovePacket from the specified reader.

Parameters: reader (MinecraftPrimitiveReader), protocolVersion (int)

Returns: VehicleMovePacket - The value that was read.

TryGetPacketId(int, out int)​

public static bool TryGetPacketId(int protocolVersion, out int id)

Attempts to get the wire id of the packet for the specified protocol version.

Parameters: protocolVersion (int), id (int)

Returns: bool - true if the packet exists on the specified protocol version; otherwise, false.

Write(MinecraftPrimitiveWriter, int)​

public void Write(MinecraftPrimitiveWriter writer, int protocolVersion)

Writes the current value to the specified writer.

Parameters: writer (MinecraftPrimitiveWriter), protocolVersion (int)