Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundAddMobPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION < 759 /* < 1.19 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ClientboundAddMobPacket : public BaseMessage<ClientboundAddMobPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Add Mob";
12
13 SERIALIZED_FIELD(EntityId, VarInt);
14 SERIALIZED_FIELD(Uuid, UUID);
15 SERIALIZED_FIELD(Type, VarInt);
16 SERIALIZED_FIELD(X, double);
17 SERIALIZED_FIELD(Y, double);
18 SERIALIZED_FIELD(Z, double);
19 SERIALIZED_FIELD(YRot, unsigned char);
20 SERIALIZED_FIELD(XRot, unsigned char);
21 SERIALIZED_FIELD(YHeadRot, unsigned char);
22 SERIALIZED_FIELD(Xd, short);
23 SERIALIZED_FIELD(Yd, short);
24 SERIALIZED_FIELD(Zd, short);
25#if PROTOCOL_VERSION < 573 /* < 1.15 */
26 SERIALIZED_FIELD(RawMetadata, Internal::Vector<unsigned char, void, 0>);
27#endif
28
30 };
31} //ProtocolCraft
32#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)