Botcraft 26.3
Loading...
Searching...
No Matches
ClientboundEntityPositionSyncPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
2#pragma once
3
5#if PROTOCOL_VERSION < 777 /* < 26.3 */
7#else
9#endif
10
11namespace ProtocolCraft
12{
13 class ClientboundEntityPositionSyncPacket : public BasePacket<ClientboundEntityPositionSyncPacket>
14 {
15 public:
16 static constexpr std::string_view packet_name = "Entity Position Sync";
17
19#if PROTOCOL_VERSION < 777 /* < 26.3 */
21#else
23 SERIALIZED_FIELD(YRot, float);
24 SERIALIZED_FIELD(XRot, float);
25#endif
26 SERIALIZED_FIELD(OnGround, bool);
27
29 };
30} //ProtocolCraft
31#endif
#define SERIALIZED_FIELD(Name,...)