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
4
#include "
protocolCraft/BaseMessage.hpp
"
5
#include "
protocolCraft/Types/BlockEntityTag.hpp
"
6
#if PROTOCOL_VERSION > 754
/* > 1.16.5 */
7
#include <map>
8
#include "
protocolCraft/Types/Identifier.hpp
"
9
#endif
10
11
namespace
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
30
DECLARE_READ_WRITE_SERIALIZE
;
31
};
32
}
//ProtocolCraft
33
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
BlockEntityTag.hpp
Identifier.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ClientboundUpdateTagsPacket
Definition
ClientboundUpdateTagsPacket.hpp:14
ProtocolCraft::ClientboundUpdateTagsPacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundUpdateTagsPacket.hpp:16
ProtocolCraft::ClientboundUpdateTagsPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundUpdateTagsPacket.hpp:30
ProtocolCraft::ClientboundUpdateTagsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Tags, std::map< Identifier, std::vector< BlockEntityTag > >)
ProtocolCraft::Identifier
Definition
Identifier.hpp:8
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundUpdateTagsPacket.hpp
Generated by
1.9.8