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