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
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
25public:
26 // virtual functions
27 // NOLINTBEGIN
28#ifdef LL_PLAT_S
29 virtual ~CraftingContainerController() /*override*/ = default;
30#else // LL_PLAT_C
31 virtual ~CraftingContainerController() /*override*/;
32#endif
33
34 virtual ::ItemInstance const& getRecipeItem(int) const = 0;
35
36 virtual void onRecipeSelected(::Recipe const* recipe, uint64 gridSize, bool displayGhostItems);
37
38 virtual void clearSelectedRecipe();
39
40 virtual ::Recipe const* getSelectedRecipe() const;
41
42 virtual void setGhostItem(::ItemInstance const& item, int slot, bool showStackSize);
43
44 virtual ::ItemInstance const& getGhostItem(int slot) const;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCNAPI_C void* $ctor(::std::shared_ptr<::ContainerModel> containerModel, bool dropOnDelete);
57 // NOLINTEND
58
59public:
60 // destructor thunk
61 // NOLINTBEGIN
62 MCNAPI void $dtor();
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68#ifdef LL_PLAT_C
69 MCNAPI void $onRecipeSelected(::Recipe const* recipe, uint64 gridSize, bool displayGhostItems);
70
71 MCNAPI void $clearSelectedRecipe();
72
73 MCNAPI ::Recipe const* $getSelectedRecipe() const;
74
75 MCNAPI void $setGhostItem(::ItemInstance const& item, int slot, bool showStackSize);
76
77 MCNAPI ::ItemInstance const& $getGhostItem(int slot) const;
78#endif
79
80
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftable();
87 // NOLINTEND
88};
Definition ContainerController.h:20
Definition ContainerModel.h:27
Definition CraftingContainerController.h:15
static MCAPI void ** $vftable()
Definition ItemInstance.h:15
Definition Recipe.h:31