Botcraft
1.21.4
Loading...
Searching...
No Matches
ServerboundPlayerCommandPacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
protocolCraft/BaseMessage.hpp
"
4
5
namespace
ProtocolCraft
6
{
7
class
ServerboundPlayerCommandPacket
:
public
BaseMessage
<ServerboundPlayerCommandPacket>
8
{
9
public
:
10
static
constexpr
std::string_view
packet_name
=
"Player Command"
;
11
12
SERIALIZED_FIELD
(Id_,
VarInt
);
13
SERIALIZED_FIELD
(Action,
VarInt
);
14
SERIALIZED_FIELD
(Data,
VarInt
);
15
16
DECLARE_READ_WRITE_SERIALIZE
;
17
};
18
}
//ProtocolCraft
BaseMessage.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ServerboundPlayerCommandPacket
Definition
ServerboundPlayerCommandPacket.hpp:8
ProtocolCraft::ServerboundPlayerCommandPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundPlayerCommandPacket.hpp:16
ProtocolCraft::ServerboundPlayerCommandPacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundPlayerCommandPacket.hpp:10
ProtocolCraft::ServerboundPlayerCommandPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Action, VarInt)
ProtocolCraft::ServerboundPlayerCommandPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Id_, VarInt)
ProtocolCraft::ServerboundPlayerCommandPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Data, VarInt)
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Messages
Play
Serverbound
ServerboundPlayerCommandPacket.hpp
Generated by
1.9.8