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 virtual ~CraftingContainerController() /*override*/ = default;
36
37 virtual ::ItemInstance const& getRecipeItem(int index) const = 0;
38
39 virtual void onRecipeSelected(::Recipe const* recipe, uint64 gridSize, bool displayGhostItems);
40
41 virtual void clearSelectedRecipe();
42
43 virtual ::Recipe const* getSelectedRecipe() const;
44
45 virtual void setGhostItem(::ItemInstance const& item, int slot, bool showStackSize);
46
47 virtual ::ItemInstance const& getGhostItem(int slot) const;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53#ifdef LL_PLAT_C
54 MCAPI CraftingContainerController(::std::shared_ptr<::ContainerModel> containerModel, bool dropOnDelete);
55#endif
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61#ifdef LL_PLAT_C
62 MCAPI void* $ctor(::std::shared_ptr<::ContainerModel> containerModel, bool dropOnDelete);
63#endif
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69#ifdef LL_PLAT_C
70 MCAPI void $onRecipeSelected(::Recipe const* recipe, uint64 gridSize, bool displayGhostItems);
71
72 MCAPI void $clearSelectedRecipe();
73
74 MCFOLD ::Recipe const* $getSelectedRecipe() const;
75
76 MCAPI void $setGhostItem(::ItemInstance const& item, int slot, bool showStackSize);
77
78 MCAPI ::ItemInstance const& $getGhostItem(int slot) const;
79#endif
80
81
82 // NOLINTEND
83};
Definition ContainerController.h:21
Definition ContainerModel.h:24
Definition ItemInstance.h:15
Definition Recipe.h:32