Botcraft 1.21.4
Loading...
Searching...
No Matches
ServerboundPlaceRecipePacket.hpp
Go to the documentation of this file.
1#pragma once
2
4#if PROTOCOL_VERSION > 340 /* > 1.12.2 */
6#endif
7
8namespace ProtocolCraft
9{
10 class ServerboundPlaceRecipePacket : public BaseMessage<ServerboundPlaceRecipePacket>
11 {
12 public:
13 static constexpr std::string_view packet_name = "Place Recipe";
14
15#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
16 SERIALIZED_FIELD(ContainerId, char);
17#else
18 SERIALIZED_FIELD(ContainerId, VarInt);
19#endif
20#if PROTOCOL_VERSION < 393 /* < 1.13 */ || PROTOCOL_VERSION > 767 /* > 1.21.1 */
22#else
24#endif
25 SERIALIZED_FIELD(UseMaxItems, bool);
26
28 };
29} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)