Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundUpdateRecipesPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 347 /* > 1.12.2 */
2#pragma once
3
5#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
7#endif
8#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
11#endif
12
13namespace ProtocolCraft
14{
15 class ClientboundUpdateRecipesPacket : public BaseMessage<ClientboundUpdateRecipesPacket>
16 {
17 public:
18 static constexpr std::string_view packet_name = "Update Recipes";
19
20#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
21 SERIALIZED_FIELD(Recipes, std::vector<Recipe>);
22#endif
23#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
24 SERIALIZED_FIELD(ItemSets, std::map<Identifier, std::vector<VarInt>>);
25 SERIALIZED_FIELD(StoneCutterRecipes, std::vector<SelectableRecipeSingleInputEntry>);
26#endif
27
29 };
30} //ProtocolCraft
31#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(ItemSets, std::map< Identifier, std::vector< VarInt > >)
SERIALIZED_FIELD(StoneCutterRecipes, std::vector< SelectableRecipeSingleInputEntry >)