Botcraft 1.21.5
Loading...
Searching...
No Matches
ServerboundCustomQueryPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 340 /* > 1.12.2 */ && PROTOCOL_VERSION < 764 /* < 1.20.2 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ServerboundCustomQueryPacket : public BasePacket<ServerboundCustomQueryPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Custom Query";
12
13 SERIALIZED_FIELD(TransactionId, VarInt);
14 SERIALIZED_FIELD(Data, std::optional<Internal::Vector<unsigned char, void, 0>>);
15
17 };
18} // ProtocolCraft
19#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)