Botcraft
1.21.4
Loading...
Searching...
No Matches
ServerboundChatPreviewPacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 758
/* > 1.18.2 */
&& PROTOCOL_VERSION < 761
/* < 1.19.3 */
2
#pragma once
3
4
#include <string>
5
6
#include "
protocolCraft/BaseMessage.hpp
"
7
8
namespace
ProtocolCraft
9
{
10
class
ServerboundChatPreviewPacket :
public
BaseMessage<ServerboundChatPreviewPacket>
11
{
12
public
:
13
static
constexpr
std::string_view packet_name =
"Chat Preview"
;
14
15
SERIALIZED_FIELD
(QueryId,
int
);
16
SERIALIZED_FIELD
(Query, std::string);
17
18
DECLARE_READ_WRITE_SERIALIZE
;
19
};
20
}
//ProtocolCraft
21
#endif
DECLARE_READ_WRITE_SERIALIZE
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
Definition
AutoSerializedMacros.hpp:123
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Serverbound
ServerboundChatPreviewPacket.hpp
Generated by
1.9.8