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
4
#include "
protocolCraft/BaseMessage.hpp
"
5
#if PROTOCOL_VERSION < 768
/* < 1.21.2 */
6
#include "
protocolCraft/Types/Recipes/Recipe.hpp
"
7
#endif
8
#if PROTOCOL_VERSION > 767
/* > 1.21.1 */
9
#include "
protocolCraft/Types/Identifier.hpp
"
10
#include "
protocolCraft/Types/Recipes/SelectableRecipeSingleInputEntry.hpp
"
11
#endif
12
13
namespace
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
28
DECLARE_READ_WRITE_SERIALIZE
;
29
};
30
}
//ProtocolCraft
31
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
Identifier.hpp
Recipe.hpp
SelectableRecipeSingleInputEntry.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ClientboundUpdateRecipesPacket
Definition
ClientboundUpdateRecipesPacket.hpp:16
ProtocolCraft::ClientboundUpdateRecipesPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundUpdateRecipesPacket.hpp:28
ProtocolCraft::ClientboundUpdateRecipesPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(ItemSets, std::map< Identifier, std::vector< VarInt > >)
ProtocolCraft::ClientboundUpdateRecipesPacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundUpdateRecipesPacket.hpp:18
ProtocolCraft::ClientboundUpdateRecipesPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(StoneCutterRecipes, std::vector< SelectableRecipeSingleInputEntry >)
ProtocolCraft::Identifier
Definition
Identifier.hpp:8
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundUpdateRecipesPacket.hpp
Generated by
1.9.8