Botcraft
1.21.4
Loading...
Searching...
No Matches
ClientboundCommandSuggestionsPacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
protocolCraft/BaseMessage.hpp
"
4
5
#if PROTOCOL_VERSION > 356
/* > 1.12.2 */
6
#include "
protocolCraft/Types/Chat/Chat.hpp
"
7
#endif
8
9
namespace
ProtocolCraft
10
{
11
class
ClientboundCommandSuggestionsPacket
:
public
BaseMessage
<ClientboundCommandSuggestionsPacket>
12
{
13
public
:
14
static
constexpr
std::string_view
packet_name
=
"Command Suggestions"
;
15
16
#if PROTOCOL_VERSION < 393
/* < 1.13 */
17
SERIALIZED_FIELD
(Suggestions, std::vector<std::string>);
18
#else
19
SERIALIZED_FIELD
(Id_,
VarInt
);
20
SERIALIZED_FIELD
(Start,
VarInt
);
21
SERIALIZED_FIELD
(Length,
VarInt
);
22
SERIALIZED_FIELD
(Suggestions, std::map<std::string, std::optional<Chat>>);
23
#endif
24
25
DECLARE_READ_WRITE_SERIALIZE
;
26
};
27
}
//ProtocolCraft
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
Chat.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ClientboundCommandSuggestionsPacket
Definition
ClientboundCommandSuggestionsPacket.hpp:12
ProtocolCraft::ClientboundCommandSuggestionsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Length, VarInt)
ProtocolCraft::ClientboundCommandSuggestionsPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundCommandSuggestionsPacket.hpp:25
ProtocolCraft::ClientboundCommandSuggestionsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Start, VarInt)
ProtocolCraft::ClientboundCommandSuggestionsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Suggestions, std::map< std::string, std::optional< Chat > >)
ProtocolCraft::ClientboundCommandSuggestionsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Id_, VarInt)
ProtocolCraft::ClientboundCommandSuggestionsPacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundCommandSuggestionsPacket.hpp:14
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundCommandSuggestionsPacket.hpp
Generated by
1.9.8