Botcraft
1.21.4
Loading...
Searching...
No Matches
ClientboundSetDisplayChatPreviewPacket.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 "
protocolCraft/BaseMessage.hpp
"
5
6
namespace
ProtocolCraft
7
{
8
class
ClientboundSetDisplayChatPreviewPacket :
public
BaseMessage<ClientboundSetDisplayChatPreviewPacket>
9
{
10
public
:
11
static
constexpr
std::string_view packet_name =
"Set Display Chat Preview"
;
12
13
SERIALIZED_FIELD
(Enabled,
bool
);
14
15
DECLARE_READ_WRITE_SERIALIZE
;
16
};
17
}
//ProtocolCraft
18
#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
Clientbound
ClientboundSetDisplayChatPreviewPacket.hpp
Generated by
1.9.8