Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundPlayerPositionPacket.hpp
Go to the documentation of this file.
1#pragma once
2
4#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
6#endif
7
8namespace ProtocolCraft
9{
10 class ClientboundPlayerPositionPacket : public BaseMessage<ClientboundPlayerPositionPacket>
11 {
12 public:
13 static constexpr std::string_view packet_name = "Player Position";
14
15#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
16 SERIALIZED_FIELD(X, double);
17 SERIALIZED_FIELD(Y, double);
18 SERIALIZED_FIELD(Z, double);
19 SERIALIZED_FIELD(YRot, float);
20 SERIALIZED_FIELD(XRot, float);
21 SERIALIZED_FIELD(RelativeArguments, char);
23#if PROTOCOL_VERSION > 754 /* > 1.16.5 */ && PROTOCOL_VERSION < 762 /* < 1.19.4 */
24 SERIALIZED_FIELD(DismountVehicle, bool);
25#endif
26#else
29 SERIALIZED_FIELD(Relatives, int);
30#endif
31
33 };
34}
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Change, PositionMoveRotation)