LeviLamina
Loading...
Searching...
No Matches
FurnaceContainerController.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#include "mc/world/item/ItemInstance.h"
8
9// auto generated forward declare list
10// clang-format off
11class ContainerModel;
12// clang-format on
13
14class FurnaceContainerController : public ::ContainerController {
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<8, 128, ::ItemInstance> mRecipeItem;
19 ::ll::TypedStorage<8, 128, ::ItemInstance> mGhostItem;
20 ::ll::TypedStorage<1, 1, bool> mDisplayOnlyGhostItems;
21 ::ll::TypedStorage<1, 1, bool> mIsRecipeSmeltable;
22 // NOLINTEND
23
24#ifdef LL_PLAT_S
25#else // LL_PLAT_C
26public:
27 // prevent constructor by default
28 FurnaceContainerController();
29
30#endif
31public:
32 // virtual functions
33 // NOLINTBEGIN
34#ifdef LL_PLAT_S
35 virtual ~FurnaceContainerController() /*override*/ = default;
36#else // LL_PLAT_C
37 virtual ~FurnaceContainerController() /*override*/;
38#endif
39
40 virtual ::ItemInstance const& getRecipeItem(int slot) const /*override*/;
41
42 virtual void onRecipeSelected(::ItemInstance const& recipeItem, bool displayGhostItems);
43
44 virtual void setGhostItem(::ItemInstance const& item);
45
46 virtual ::ItemInstance const& getGhostItem() const;
47
48 virtual int getBackgroundStyle(int slot, bool inventoryContainsItem) const /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54#ifdef LL_PLAT_C
55 MCNAPI FurnaceContainerController(::std::shared_ptr<::ContainerModel> containerModel, bool dropOnDelete);
56
57 MCNAPI void clearSelectedRecipe();
58#endif
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64#ifdef LL_PLAT_C
65 MCNAPI void* $ctor(::std::shared_ptr<::ContainerModel> containerModel, bool dropOnDelete);
66#endif
67 // NOLINTEND
68
69public:
70 // destructor thunk
71 // NOLINTBEGIN
72 MCNAPI void $dtor();
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78#ifdef LL_PLAT_C
79 MCNAPI ::ItemInstance const& $getRecipeItem(int slot) const;
80
81 MCNAPI void $onRecipeSelected(::ItemInstance const& recipeItem, bool displayGhostItems);
82
83 MCNAPI void $setGhostItem(::ItemInstance const& item);
84
85 MCNAPI ::ItemInstance const& $getGhostItem() const;
86
87 MCNAPI int $getBackgroundStyle(int slot, bool inventoryContainsItem) const;
88#endif
89
90
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
Definition ContainerController.h:20
Definition ContainerModel.h:27
static MCAPI void ** $vftable()
Definition ItemInstance.h:15