Botcraft
1.21.5
Loading...
Searching...
No Matches
RecipeDataSimpleCooking.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 347
/* > 1.12.2 */
&& PROTOCOL_VERSION < 768
/* < 1.21.2 */
2
#pragma once
3
4
#include "
protocolCraft/Types/Recipes/RecipeData.hpp
"
5
#include "
protocolCraft/Types/Recipes/Ingredient.hpp
"
6
#include "
protocolCraft/Types/Item/Slot.hpp
"
7
8
namespace
ProtocolCraft
9
{
10
class
RecipeDataSimpleCooking :
public
RecipeData
11
{
12
SERIALIZED_FIELD
(Group, std::string);
13
#if PROTOCOL_VERSION > 760
/* > 1.19.2 */
14
SERIALIZED_FIELD
(CookingBookCategory, VarInt);
15
#endif
16
SERIALIZED_FIELD
(Ingredient,
ProtocolCraft::Ingredient
);
17
SERIALIZED_FIELD
(Result, Slot);
18
SERIALIZED_FIELD
(Experience,
float
);
19
SERIALIZED_FIELD
(CookingTime, VarInt);
20
21
DECLARE_READ_WRITE_SERIALIZE
;
22
};
23
}
24
#endif
DECLARE_READ_WRITE_SERIALIZE
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
Definition
AutoSerializedMacros.hpp:123
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
Ingredient.hpp
RecipeData.hpp
Slot.hpp
ProtocolCraft::Ingredient
Definition
Ingredient.hpp:14
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Recipes
RecipeDataSimpleCooking.hpp
Generated by
1.9.8