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
5
6#if PROTOCOL_VERSION < 766 /* < 1.20.5 */
8#else
11
12#include <vector>
13#endif
14
15
16namespace 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
27 SERIALIZED_FIELD(Entries, std::vector<PackedRegistryEntry>);
28#endif
29
31 };
32} //ProtocolCraft
33#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Entries, std::vector< PackedRegistryEntry >)