Botcraft 1.21.4
Loading...
Searching...
No Matches
ServerboundSetJigsawBlockPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 471 /* > 1.13.2 */
2#pragma once
3
7
8namespace ProtocolCraft
9{
10 class ServerboundSetJigsawBlockPacket : public BaseMessage<ServerboundSetJigsawBlockPacket>
11 {
12 public:
13 static constexpr std::string_view packet_name = "Set Jigsaw Block";
14
16#if PROTOCOL_VERSION < 735 /* < 1.16 */
17 SERIALIZED_FIELD(AttachmentType, Identifier);
18 SERIALIZED_FIELD(TargetPool, Identifier);
19 SERIALIZED_FIELD(FinalState, std::string);
20#endif
21#if PROTOCOL_VERSION > 708 /* > 1.15.2 */
25 SERIALIZED_FIELD(FinaleState, std::string);
26 SERIALIZED_FIELD(Joint, std::string);
27#endif
28#if PROTOCOL_VERSION > 764 /* > 1.20.2 */
29 SERIALIZED_FIELD(SelectionPriority, VarInt);
30 SERIALIZED_FIELD(PlacementPriority, VarInt);
31#endif
32
34 };
35} //ProtocolCraft
36#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(SelectionPriority, VarInt)
SERIALIZED_FIELD(PlacementPriority, VarInt)