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