Botcraft 26.2
Loading...
Searching...
No Matches
ClientboundPlaceGhostRecipePacket.hpp
Go to the documentation of this file.
1#pragma once
2
4#if PROTOCOL_VERSION > 340 /* > 1.12.2 */ && PROTOCOL_VERSION < 768 /* < 1.21.2 */
6#endif
7#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
9#endif
10
11namespace ProtocolCraft
12{
13 class ClientboundPlaceGhostRecipePacket : public BasePacket<ClientboundPlaceGhostRecipePacket>
14 {
15 public:
16 static constexpr std::string_view packet_name = "Place Ghost Recipe";
17
18#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
19 SERIALIZED_FIELD(ContainerId, char);
20#else
21 SERIALIZED_FIELD(ContainerId, VarInt);
22#endif
23#if PROTOCOL_VERSION < 393 /* < 1.13 */
24 SERIALIZED_FIELD(Recipe, VarInt);
25#elif PROTOCOL_VERSION < 768 /* < 1.21.2 */
27#else
29#endif
30
32 };
33} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(RecipeDisplay, ProtocolCraft::RecipeDisplay)