Botcraft
1.21.4
Loading...
Searching...
No Matches
ClientboundDeleteChatPacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 759
/* > 1.19 */
2
#pragma once
3
4
#include "
protocolCraft/BaseMessage.hpp
"
5
#if PROTOCOL_VERSION > 760
/* > 1.19.2 */
6
#include "
protocolCraft/Types/Holder.hpp
"
7
#endif
8
9
namespace
ProtocolCraft
10
{
11
class
ClientboundDeleteChatPacket
:
public
BaseMessage
<ClientboundDeleteChatPacket>
12
{
13
public
:
14
static
constexpr
std::string_view
packet_name
=
"Delete Chat"
;
15
16
#if PROTOCOL_VERSION < 761
/* < 1.19.3 */
17
SERIALIZED_FIELD
(MessageSignature, std::vector<unsigned char>);
18
#else
19
SERIALIZED_FIELD
(MessageSignature,
Holder
<std::array<unsigned char, 256>>);
20
#endif
21
22
DECLARE_READ_WRITE_SERIALIZE
;
23
};
24
}
//ProtocolCraft
25
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
Holder.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ClientboundDeleteChatPacket
Definition
ClientboundDeleteChatPacket.hpp:12
ProtocolCraft::ClientboundDeleteChatPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(MessageSignature, Holder< std::array< unsigned char, 256 > >)
ProtocolCraft::ClientboundDeleteChatPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundDeleteChatPacket.hpp:22
ProtocolCraft::ClientboundDeleteChatPacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundDeleteChatPacket.hpp:14
ProtocolCraft::Holder
Definition
Holder.hpp:11
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundDeleteChatPacket.hpp
Generated by
1.9.8