Botcraft
1.21.4
Loading...
Searching...
No Matches
ClientboundRegistryDataPacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 763
/* > 1.20.1 */
2
#pragma once
3
4
#include "
protocolCraft/BaseMessage.hpp
"
5
6
#if PROTOCOL_VERSION < 766
/* < 1.20.5 */
7
#include "
protocolCraft/Types/NBT/NBT.hpp
"
8
#else
9
#include "
protocolCraft/Types/PackedRegistryEntry.hpp
"
10
#include "
protocolCraft/Types/Identifier.hpp
"
11
12
#include <vector>
13
#endif
14
15
16
namespace
ProtocolCraft
17
{
18
class
ClientboundRegistryDataPacket
:
public
BaseMessage
<ClientboundRegistryDataPacket>
19
{
20
public
:
21
static
constexpr
std::string_view
packet_name
=
"Registry Data"
;
22
23
#if PROTOCOL_VERSION < 766
/* < 1.20.5 */
24
SERIALIZED_FIELD
(RegistryHolder,
NBT::UnnamedValue
);
25
#else
26
SERIALIZED_FIELD
(Registry,
Identifier
);
27
SERIALIZED_FIELD
(Entries, std::vector<PackedRegistryEntry>);
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
Identifier.hpp
NBT.hpp
PackedRegistryEntry.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ClientboundRegistryDataPacket
Definition
ClientboundRegistryDataPacket.hpp:19
ProtocolCraft::ClientboundRegistryDataPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Entries, std::vector< PackedRegistryEntry >)
ProtocolCraft::ClientboundRegistryDataPacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundRegistryDataPacket.hpp:21
ProtocolCraft::ClientboundRegistryDataPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Registry, Identifier)
ProtocolCraft::ClientboundRegistryDataPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundRegistryDataPacket.hpp:30
ProtocolCraft::Identifier
Definition
Identifier.hpp:8
ProtocolCraft::NBT::UnnamedValue
Definition
NBT.hpp:12
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Configuration
Clientbound
ClientboundRegistryDataPacket.hpp
Generated by
1.9.8