LeviLamina
Loading...
Searching...
No Matches
ShapedRecipe.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/crafting/Recipe.h"
7
8// auto generated forward declare list
9// clang-format off
11class CraftingContext;
12class ItemInstance;
14// clang-format on
15
16class ShapedRecipe : public ::Recipe {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<1, 1, bool> mAssumeSymmetry;
21 // NOLINTEND
22
23#ifdef LL_PLAT_S
24public:
25 // prevent constructor by default
26 ShapedRecipe();
27
28#else // LL_PLAT_C
29public:
30 // prevent constructor by default
31 ShapedRecipe& operator=(ShapedRecipe const&);
32 ShapedRecipe(ShapedRecipe const&);
33 ShapedRecipe();
34
35#endif
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~ShapedRecipe() /*override*/;
40
41 virtual ::std::vector<::ItemInstance> const& assemble(::CraftingContainer&, ::CraftingContext&) const /*override*/;
42
43 virtual int getCraftingSize() const /*override*/;
44
45 virtual ::RecipeIngredient const& getIngredient(int x, int y) const /*override*/;
46
47 virtual bool isShapeless() const /*override*/;
48
49 virtual bool matches(::CraftingContainer const& craftSlots, ::CraftingContext const&) const /*override*/;
50
51 virtual int size() const /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57#ifdef LL_PLAT_C
58 MCAPI ShapedRecipe(::ShapedRecipe&& recipe);
59#endif
60
61 MCAPI ShapedRecipe(::Recipe::ConstructionContext&& context, int width, int height, bool assumeSymmetry);
62
63 MCFOLD bool assumeSymmetry() const;
64
65 MCAPI uint64 getIngredientsHashOffset(int simulatedWidth, int simulatedHeight, int offsetX, int offsetY) const;
66
67 MCAPI bool matches(::CraftingContainer const& craftSlots, int xOffs, int yOffs, bool xFlip) const;
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73#ifdef LL_PLAT_C
74 MCAPI void* $ctor(::ShapedRecipe&& recipe);
75#endif
76
77 MCAPI void* $ctor(::Recipe::ConstructionContext&& context, int width, int height, bool assumeSymmetry);
78 // NOLINTEND
79
80public:
81 // destructor thunk
82 // NOLINTBEGIN
83 MCAPI void $dtor();
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCFOLD ::std::vector<::ItemInstance> const& $assemble(::CraftingContainer&, ::CraftingContext&) const;
90
91 MCAPI int $getCraftingSize() const;
92
93 MCFOLD ::RecipeIngredient const& $getIngredient(int x, int y) const;
94
95 MCFOLD bool $isShapeless() const;
96
97 MCAPI bool $matches(::CraftingContainer const& craftSlots, ::CraftingContext const&) const;
98
99 MCAPI int $size() const;
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCAPI static void** $vftable();
108 // NOLINTEND
109};
Definition CraftingContainer.h:14
Definition CraftingContext.h:20
Definition ItemInstance.h:15
Definition RecipeIngredient.h:16
Definition Recipe.h:87
Definition context.h:5