LeviLamina
Loading...
Searching...
No Matches
CraftingContainerController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/containers/controllers/ContainerController.h"
7
8// auto generated forward declare list
9// clang-format off
10class ContainerModel;
11class ItemInstance;
12class Recipe;
13// clang-format on
14
15class CraftingContainerController : public ::ContainerController {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 8, ::Recipe const*> mCurrentRecipe;
20 ::ll::TypedStorage<4, 4, int> mGridSize;
21 ::ll::TypedStorage<1, 1, bool> mDisplayOnlyGhostItems;
22 ::ll::TypedStorage<8, 24, ::std::vector<::ItemInstance>> mGhostItems;
23 // NOLINTEND
24
25#ifdef LL_PLAT_S
26#else // LL_PLAT_C
27public:
28 // prevent constructor by default
29 CraftingContainerController();
30
31#endif
32public:
33 // virtual functions
34 // NOLINTBEGIN
35#ifdef LL_PLAT_S
36 virtual ~CraftingContainerController() /*override*/ = default;
37#else // LL_PLAT_C
38 virtual ~CraftingContainerController() /*override*/;
39#endif
40
41 virtual ::ItemInstance const& getRecipeItem(int slot) const = 0;
42
43#ifdef LL_PLAT_S
44 virtual void onRecipeSelected(::Recipe const*, uint64, bool);
45#else // LL_PLAT_C
46 virtual void onRecipeSelected(::Recipe const* recipe, uint64 gridSize, bool displayGhostItems);
47#endif
48
49 virtual void clearSelectedRecipe();
50
51 virtual ::Recipe const* getSelectedRecipe() const;
52
53#ifdef LL_PLAT_S
54 virtual void setGhostItem(::ItemInstance const&, int, bool);
55#else // LL_PLAT_C
56 virtual void setGhostItem(::ItemInstance const& item, int slot, bool showStackSize);
57#endif
58
59#ifdef LL_PLAT_S
60 virtual ::ItemInstance const& getGhostItem(int) const;
61#else // LL_PLAT_C
62 virtual ::ItemInstance const& getGhostItem(int slot) const;
63#endif
64
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70#ifdef LL_PLAT_C
71 MCAPI CraftingContainerController(::std::shared_ptr<::ContainerModel> containerModel, bool dropOnDelete);
72#endif
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78#ifdef LL_PLAT_C
79 MCAPI void* $ctor(::std::shared_ptr<::ContainerModel> containerModel, bool dropOnDelete);
80#endif
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86 MCFOLD void $dtor();
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92#ifdef LL_PLAT_C
93 MCAPI void $onRecipeSelected(::Recipe const* recipe, uint64 gridSize, bool displayGhostItems);
94
95 MCAPI void $clearSelectedRecipe();
96
97 MCFOLD ::Recipe const* $getSelectedRecipe() const;
98
99 MCAPI void $setGhostItem(::ItemInstance const& item, int slot, bool showStackSize);
100
101 MCAPI ::ItemInstance const& $getGhostItem(int slot) const;
102#endif
103
104
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCNAPI static void** $vftable();
111 // NOLINTEND
112};
Definition ContainerModel.h:28
static MCAPI void ** $vftable()
Definition ItemInstance.h:15
Definition Recipe.h:32