Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundResourcePackPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 763 /* > 1.20.1 */ && PROTOCOL_VERSION < 765 /* < 1.20.3 */
2#pragma once
3
6
7namespace ProtocolCraft
8{
9 class ClientboundResourcePackConfigurationPacket : public BaseMessage<ClientboundResourcePackConfigurationPacket>
10 {
11 public:
12 static constexpr std::string_view packet_name = "Resource Pack (Configuration)";
13
14 SERIALIZED_FIELD(Url, std::string);
15 SERIALIZED_FIELD(Hash, std::string);
16 SERIALIZED_FIELD(Required, bool);
17 SERIALIZED_FIELD(Prompt, std::optional<Chat>);
18
20 };
21} //ProtocolCraft
22#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)