Botcraft
1.21.4
Loading...
Searching...
No Matches
ClientboundCommandsPacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 344
/* > 1.12.2 */
2
#pragma once
3
4
#include "
protocolCraft/BaseMessage.hpp
"
5
#include "
protocolCraft/Types/CommandNode/CommandNode.hpp
"
6
7
namespace
ProtocolCraft
8
{
9
class
ClientboundCommandsPacket
:
public
BaseMessage
<ClientboundCommandsPacket>
10
{
11
public
:
12
static
constexpr
std::string_view
packet_name
=
"Commands"
;
13
14
SERIALIZED_FIELD
(Nodes, std::vector<CommandNode>);
15
SERIALIZED_FIELD
(RootIndex,
VarInt
);
16
17
DECLARE_READ_WRITE_SERIALIZE
;
18
};
19
}
//ProtocolCraft
20
#endif
BaseMessage.hpp
CommandNode.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ClientboundCommandsPacket
Definition
ClientboundCommandsPacket.hpp:10
ProtocolCraft::ClientboundCommandsPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundCommandsPacket.hpp:17
ProtocolCraft::ClientboundCommandsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Nodes, std::vector< CommandNode >)
ProtocolCraft::ClientboundCommandsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(RootIndex, VarInt)
ProtocolCraft::ClientboundCommandsPacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundCommandsPacket.hpp:12
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundCommandsPacket.hpp
Generated by
1.9.8