Botcraft
26.2
Loading...
Searching...
No Matches
ServerboundSpectatorActionPacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 775
/* > 26.1.2 */
2
#pragma once
3
4
#include "
protocolCraft/BasePacket.hpp
"
5
6
#include <optional>
7
8
namespace
ProtocolCraft
9
{
10
class
ServerboundSpectatorActionPacket
:
public
BasePacket
<ServerboundSpectatorActionPacket>
11
{
12
public
:
13
static
constexpr
std::string_view
packet_name
=
"Spectator Action"
;
14
15
SERIALIZED_FIELD
(SpectateEntityId, std::optional<VarInt>);
16
17
DECLARE_READ_WRITE_SERIALIZE
;
18
};
19
}
//ProtocolCraft
20
#endif
BasePacket.hpp
ProtocolCraft::BasePacket
Definition
BasePacket.hpp:11
ProtocolCraft::ServerboundSpectatorActionPacket
Definition
ServerboundSpectatorActionPacket.hpp:11
ProtocolCraft::ServerboundSpectatorActionPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(SpectateEntityId, std::optional< VarInt >)
ProtocolCraft::ServerboundSpectatorActionPacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundSpectatorActionPacket.hpp:13
ProtocolCraft::ServerboundSpectatorActionPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundSpectatorActionPacket.hpp:17
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Packets
Game
Serverbound
ServerboundSpectatorActionPacket.hpp
Generated by
1.9.8