Botcraft 26.3
Loading...
Searching...
No Matches
ClientboundPlaceGhostRecipePacket.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 */ && PROTOCOL_VERSION < 768 /* < 1.21.2 */
7#endif
8#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
10#endif
11
12namespace ProtocolCraft
13{
14 class ClientboundPlaceGhostRecipePacket : public BasePacket<ClientboundPlaceGhostRecipePacket>
15 {
16 public:
17 static constexpr std::string_view packet_name = "Place Ghost Recipe";
18
19#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
20 SERIALIZED_FIELD(ContainerId, char);
21#else
22 SERIALIZED_FIELD(ContainerId, VarInt);
23#endif
24#if PROTOCOL_VERSION < 393 /* < 1.13 */
25 SERIALIZED_FIELD(Recipe, VarInt);
26#elif PROTOCOL_VERSION < 768 /* < 1.21.2 */
28#else
30#endif
31
33 };
34} //ProtocolCraft
35#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(RecipeDisplay, ProtocolCraft::RecipeDisplay)