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