Skip to content
LeviMC
English
AutoLightDark
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
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~ShapedRecipe() /*override*/ = default;
27
28 virtual ::std::vector<::ItemInstance> const& assemble(::CraftingContainer&, ::CraftingContext&) const /*override*/;
29
30 virtual int getCraftingSize() const /*override*/;
31
32 virtual ::RecipeIngredient const& getIngredient(int x, int y) const /*override*/;
33
34 virtual bool isShapeless() const /*override*/;
35
36 virtual bool matches(::CraftingContainer const& craftSlots, ::CraftingContext const&) const /*override*/;
37
38 virtual int size() const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCNAPI bool matches(::CraftingContainer const& craftSlots, int xOffs, int yOffs, bool xFlip) const;
45 // NOLINTEND
46
47public:
48 // virtual function thunks
49 // NOLINTBEGIN
50 MCFOLD ::std::vector<::ItemInstance> const& $assemble(::CraftingContainer&, ::CraftingContext&) const;
51
52 MCAPI int $getCraftingSize() const;
53
54 MCFOLD ::RecipeIngredient const& $getIngredient(int x, int y) const;
55
56 MCFOLD bool $isShapeless() const;
57
58 MCAPI bool $matches(::CraftingContainer const& craftSlots, ::CraftingContext const&) const;
59
60 MCAPI int $size() const;
61
62
63 // NOLINTEND
64
65public:
66 // vftables
67 // NOLINTBEGIN
68 MCAPI static void** $vftable();
69 // NOLINTEND
70};
Definition CraftingContainer.h:14
Definition CraftingContext.h:21
Definition ItemInstance.h:15
Definition RecipeIngredient.h:8
static MCAPI void ** $vftable()
Definition ShapedRecipe.h:16
MCAPI bool matches(::CraftingContainer const &craftSlots, int xOffs, int yOffs, bool xFlip) const