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
5
6namespace 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
22 };
23} //ProtocolCraft
24#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Secondary, std::optional< VarInt >)
SERIALIZED_FIELD(Primary, std::optional< VarInt >)