Botcraft 1.21.10
Loading...
Searching...
No Matches
ClientboundAddEntityPacket.hpp
Go to the documentation of this file.
1#pragma once
2
4#if PROTOCOL_VERSION > 772 /* > 1.21.8 */
6#endif
7
8namespace ProtocolCraft
9{
10 class ClientboundAddEntityPacket : public BasePacket<ClientboundAddEntityPacket>
11 {
12 public:
13 static constexpr std::string_view packet_name = "Add Entity";
14
17#if PROTOCOL_VERSION < 477 /* < 1.14 */
18 SERIALIZED_FIELD(Type, char);
19#else
21#endif
22 SERIALIZED_FIELD(X, double);
23 SERIALIZED_FIELD(Y, double);
24 SERIALIZED_FIELD(Z, double);
25#if PROTOCOL_VERSION > 772 /* > 1.21.8 */
27#endif
28 SERIALIZED_FIELD(XRot, unsigned char);
29 SERIALIZED_FIELD(YRot, unsigned char);
30#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
31 SERIALIZED_FIELD(YHeadRot, unsigned char);
32#endif
33#if PROTOCOL_VERSION < 759 /* < 1.19 */
34 SERIALIZED_FIELD(Data, int);
35#else
37#endif
38#if PROTOCOL_VERSION < 773 /* < 1.21.9 */
39 SERIALIZED_FIELD(Xa, short);
40 SERIALIZED_FIELD(Ya, short);
41 SERIALIZED_FIELD(Za, short);
42#endif
43
45 };
46} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(YHeadRot, unsigned char)
std::array< unsigned char, 16 > UUID