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
24#else // LL_PLAT_C
25public:
26 // prevent constructor by default
27 ShapedRecipe& operator=(ShapedRecipe const&);
28 ShapedRecipe(ShapedRecipe const&);
29 ShapedRecipe();
30
31#endif
32public:
33 // virtual functions
34 // NOLINTBEGIN
35#ifdef LL_PLAT_S
36 virtual ~ShapedRecipe() /*override*/ = default;
37#else // LL_PLAT_C
38 virtual ~ShapedRecipe() /*override*/;
39#endif
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& craftingContext) const
50 /*override*/;
51
52 virtual int size() const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58#ifdef LL_PLAT_C
59 MCAPI ShapedRecipe(::ShapedRecipe&& recipe);
60#endif
61
62 MCAPI uint64 getIngredientsHashOffset(int simulatedWidth, int simulatedHeight, int offsetX, int offsetY) const;
63
64 MCAPI bool matches(::CraftingContainer const& craftSlots, int xOffs, int yOffs, bool xFlip) const;
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70#ifdef LL_PLAT_C
71 MCAPI void* $ctor(::ShapedRecipe&& recipe);
72#endif
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCFOLD void $dtor();
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCFOLD ::std::vector<::ItemInstance> const& $assemble(::CraftingContainer&, ::CraftingContext&) const;
85
86 MCAPI int $getCraftingSize() const;
87
88 MCFOLD ::RecipeIngredient const& $getIngredient(int x, int y) const;
89
90 MCFOLD bool $isShapeless() const;
91
92 MCAPI bool $matches(::CraftingContainer const& craftSlots, ::CraftingContext const& craftingContext) const;
93
94 MCAPI int $size() const;
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCAPI static void** $vftable();
103 // NOLINTEND
104};
Definition CraftingContainer.h:14
Definition CraftingContext.h:20
Definition ItemInstance.h:15
Definition RecipeIngredient.h:17