Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundAddPaintingPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION < 759 /* < 1.19 */
2#pragma once
3
6
7namespace ProtocolCraft
8{
9 class ClientboundAddPaintingPacket : public BaseMessage<ClientboundAddPaintingPacket>
10 {
11 public:
12 static constexpr std::string_view packet_name = "Add Painting";
13
14 SERIALIZED_FIELD(Id_, VarInt);
15 SERIALIZED_FIELD(Uuid, UUID);
16#if PROTOCOL_VERSION < 393 /* < 1.13 */
17 SERIALIZED_FIELD(Title, std::string);
18#else
19 SERIALIZED_FIELD(Motive, VarInt);
20#endif
21 SERIALIZED_FIELD(Pos, NetworkPosition);
22 SERIALIZED_FIELD(Direction, char);
23
25 };
26} //ProtocolCraft
27#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)