Botcraft
1.21.4
Loading...
Searching...
No Matches
ServerboundChatAckPacket.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
#include "
protocolCraft/Types/Chat/LastSeenMessagesUpdate.hpp
"
6
7
namespace
ProtocolCraft
8
{
9
class
ServerboundChatAckPacket
:
public
BaseMessage
<ServerboundChatAckPacket>
10
{
11
public
:
12
static
constexpr
std::string_view
packet_name
=
"Chat Ack"
;
13
14
#if PROTOCOL_VERSION < 761
/* < 1.19.3 */
15
SERIALIZED_FIELD
(LastSeenMessages,
LastSeenMessagesUpdate
);
16
#else
17
SERIALIZED_FIELD
(Offset,
VarInt
);
18
#endif
19
20
DECLARE_READ_WRITE_SERIALIZE
;
21
};
22
}
//ProtocolCraft
23
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
LastSeenMessagesUpdate.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::LastSeenMessagesUpdate
Definition
LastSeenMessagesUpdate.hpp:15
ProtocolCraft::ServerboundChatAckPacket
Definition
ServerboundChatAckPacket.hpp:10
ProtocolCraft::ServerboundChatAckPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundChatAckPacket.hpp:20
ProtocolCraft::ServerboundChatAckPacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundChatAckPacket.hpp:12
ProtocolCraft::ServerboundChatAckPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Offset, VarInt)
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Messages
Play
Serverbound
ServerboundChatAckPacket.hpp
Generated by
1.9.8