Botcraft 26.3
Loading...
Searching...
No Matches
ClientboundAddGlobalEntityPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION < 721 /* < 1.16 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ClientboundAddGlobalEntityPacket : public BasePacket<ClientboundAddGlobalEntityPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Add Global Entity";
12
13 SERIALIZED_FIELD(EntityId, VarInt);
14 SERIALIZED_FIELD(Type, char);
15#if PROTOCOL_VERSION < 107 /* < 1.9 */
16 SERIALIZED_FIELD(X, int);
17 SERIALIZED_FIELD(Y, int);
18 SERIALIZED_FIELD(Z, int);
19#else
20 SERIALIZED_FIELD(X, double);
21 SERIALIZED_FIELD(Y, double);
22 SERIALIZED_FIELD(Z, double);
23#endif
24
26 };
27} //ProtocolCraft
28#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)