Botcraft 1.21.10
Loading...
Searching...
No Matches
ClientboundPlayerRotationPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ClientboundPlayerRotationPacket : public BasePacket<ClientboundPlayerRotationPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Player Rotation";
12
13 SERIALIZED_FIELD(YRot, float);
14#if PROTOCOL_VERSION > 772 /* > 1.21.8 */
15 SERIALIZED_FIELD(RelativeY, bool);
16#endif
17 SERIALIZED_FIELD(XRot, float);
18#if PROTOCOL_VERSION > 772 /* > 1.21.8 */
19 SERIALIZED_FIELD(RelativeX, bool);
20#endif
21
23 };
24}
25#endif