LeviLamina
Loading...
Searching...
No Matches
ShapelessRecipe.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 ShapelessRecipe : public ::Recipe {
17#ifdef LL_PLAT_S
18public:
19 // prevent constructor by default
20 ShapelessRecipe();
21
22#else // LL_PLAT_C
23public:
24 // prevent constructor by default
25 ShapelessRecipe& operator=(ShapelessRecipe const&);
26 ShapelessRecipe(ShapelessRecipe const&);
27 ShapelessRecipe();
28
29#endif
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ::std::vector<::ItemInstance> const&
34 assemble(::CraftingContainer& craftingContainer, ::CraftingContext& craftingContext) const /*override*/;
35
36 virtual int getCraftingSize() const /*override*/;
37
38 virtual ::RecipeIngredient const& getIngredient(int x, int y) const /*override*/;
39
40 virtual bool isShapeless() const /*override*/;
41
42 virtual bool matches(::CraftingContainer const& craftSlots, ::CraftingContext const& craftingContext) const
43 /*override*/;
44
45 virtual int size() const /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI explicit ShapelessRecipe(::Recipe::ConstructionContext&& context);
52
53#ifdef LL_PLAT_C
54 MCAPI ShapelessRecipe(::ShapelessRecipe&& recipe);
55#endif
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::Recipe::ConstructionContext&& context);
62
63#ifdef LL_PLAT_C
64 MCAPI void* $ctor(::ShapelessRecipe&& recipe);
65#endif
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71 MCFOLD ::std::vector<::ItemInstance> const&
72 $assemble(::CraftingContainer& craftingContainer, ::CraftingContext& craftingContext) const;
73
74 MCAPI int $getCraftingSize() const;
75
76 MCFOLD ::RecipeIngredient const& $getIngredient(int x, int y) const;
77
78 MCFOLD bool $isShapeless() const;
79
80 MCAPI bool $matches(::CraftingContainer const& craftSlots, ::CraftingContext const& craftingContext) const;
81
82 MCAPI int $size() const;
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCAPI static void** $vftable();
91 // NOLINTEND
92};
Definition CraftingContainer.h:14
Definition CraftingContext.h:20
Definition ItemInstance.h:15
Definition RecipeIngredient.h:16
Definition Recipe.h:87
Definition context.h:5