Botcraft
1.21.4
Loading...
Searching...
No Matches
ServerboundSetBeaconPacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 385
/* > 1.12.2 */
2
#pragma once
3
4
#include "
protocolCraft/BaseMessage.hpp
"
5
6
namespace
ProtocolCraft
7
{
8
class
ServerboundSetBeaconPacket
:
public
BaseMessage
<ServerboundSetBeaconPacket>
9
{
10
public
:
11
static
constexpr
std::string_view
packet_name
=
"Set Beacon"
;
12
13
#if PROTOCOL_VERSION < 759
/* < 1.19 */
14
SERIALIZED_FIELD
(Primary,
VarInt
);
15
SERIALIZED_FIELD
(Secondary,
VarInt
);
16
#else
17
SERIALIZED_FIELD
(Primary, std::optional<VarInt>);
18
SERIALIZED_FIELD
(Secondary, std::optional<VarInt>);
19
#endif
20
21
DECLARE_READ_WRITE_SERIALIZE
;
22
};
23
}
//ProtocolCraft
24
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ServerboundSetBeaconPacket
Definition
ServerboundSetBeaconPacket.hpp:9
ProtocolCraft::ServerboundSetBeaconPacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundSetBeaconPacket.hpp:11
ProtocolCraft::ServerboundSetBeaconPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Secondary, std::optional< VarInt >)
ProtocolCraft::ServerboundSetBeaconPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundSetBeaconPacket.hpp:21
ProtocolCraft::ServerboundSetBeaconPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Primary, std::optional< VarInt >)
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Messages
Play
Serverbound
ServerboundSetBeaconPacket.hpp
Generated by
1.9.8