Botcraft
1.21.4
Loading...
Searching...
No Matches
RecipeDisplayEntry.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 767
/* > 1.21.1 */
2
#pragma once
3
4
#include "
protocolCraft/NetworkType.hpp
"
5
#include "
protocolCraft/Types/Recipes/RecipeDisplay.hpp
"
6
#include "
protocolCraft/Types/Recipes/Ingredient.hpp
"
7
8
#include <optional>
9
10
namespace
ProtocolCraft
11
{
12
class
RecipeDisplayEntry
:
public
NetworkType
13
{
14
SERIALIZED_FIELD
(Id,
VarInt
);
15
SERIALIZED_FIELD
(Display,
RecipeDisplay
);
16
SERIALIZED_FIELD
(Group,
VarInt
);
17
SERIALIZED_FIELD
(Category,
VarInt
);
18
SERIALIZED_FIELD
(CraftingRequirements, std::optional<std::vector<Ingredient>>);
19
20
DECLARE_READ_WRITE_SERIALIZE
;
21
};
22
}
23
#endif
Ingredient.hpp
NetworkType.hpp
RecipeDisplay.hpp
ProtocolCraft::NetworkType
Definition
NetworkType.hpp:11
ProtocolCraft::RecipeDisplayEntry
Definition
RecipeDisplayEntry.hpp:13
ProtocolCraft::RecipeDisplayEntry::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
RecipeDisplayEntry.hpp:20
ProtocolCraft::RecipeDisplayEntry::SERIALIZED_FIELD
SERIALIZED_FIELD(Category, VarInt)
ProtocolCraft::RecipeDisplayEntry::SERIALIZED_FIELD
SERIALIZED_FIELD(Id, VarInt)
ProtocolCraft::RecipeDisplayEntry::SERIALIZED_FIELD
SERIALIZED_FIELD(Display, RecipeDisplay)
ProtocolCraft::RecipeDisplayEntry::SERIALIZED_FIELD
SERIALIZED_FIELD(CraftingRequirements, std::optional< std::vector< Ingredient > >)
ProtocolCraft::RecipeDisplayEntry::SERIALIZED_FIELD
SERIALIZED_FIELD(Group, VarInt)
ProtocolCraft::RecipeDisplay
Definition
RecipeDisplay.hpp:24
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Types
Recipes
RecipeDisplayEntry.hpp
Generated by
1.9.8