Botcraft 26.3
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 BasePacket<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);
22#if PROTOCOL_VERSION > 47 /* > 1.8.9 */
24#endif
25#if PROTOCOL_VERSION > 754 /* > 1.16.5 */ && PROTOCOL_VERSION < 762 /* < 1.19.4 */
26 SERIALIZED_FIELD(DismountVehicle, bool);
27#endif
28#else
31 SERIALIZED_FIELD(Relatives, int);
32#endif
33
35 };
36}
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Change, PositionMoveRotation)