Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundUpdateTagsPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 348 /* > 1.12.2 */
2#pragma once
3
6#if PROTOCOL_VERSION > 754 /* > 1.16.5 */
7#include <map>
9#endif
10
11namespace ProtocolCraft
12{
13 class ClientboundUpdateTagsPacket : public BaseMessage<ClientboundUpdateTagsPacket>
14 {
15 public:
16 static constexpr std::string_view packet_name = "Update Tags";
17
18#if PROTOCOL_VERSION < 755 /* < 1.17 */
19 SERIALIZED_FIELD(BlockTags, std::vector<BlockEntityTag>);
20 SERIALIZED_FIELD(ItemTags, std::vector<BlockEntityTag>);
21 SERIALIZED_FIELD(FluidTags, std::vector<BlockEntityTag>);
22#endif
23#if PROTOCOL_VERSION > 404 /* > 1.13.2 */ && PROTOCOL_VERSION < 755 /* < 1.17 */
24 SERIALIZED_FIELD(EntityTags, std::vector<BlockEntityTag>);
25#endif
26#if PROTOCOL_VERSION > 754 /* > 1.16.5 */
27 SERIALIZED_FIELD(Tags, std::map<Identifier, std::vector<BlockEntityTag>>);
28#endif
29
31 };
32} //ProtocolCraft
33#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Tags, std::map< Identifier, std::vector< BlockEntityTag > >)