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) const /*override*/;
41
42#ifdef LL_PLAT_S
43 virtual void onRecipeSelected(::ItemInstance const&, bool);
44#else // LL_PLAT_C
45 virtual void onRecipeSelected(::ItemInstance const& recipeItem, bool displayGhostItems);
46#endif
47
48#ifdef LL_PLAT_S
49 virtual void setGhostItem(::ItemInstance const&);
50#else // LL_PLAT_C
51 virtual void setGhostItem(::ItemInstance const& item);
52#endif
53
54 virtual ::ItemInstance const& getGhostItem() const;
55
56#ifdef LL_PLAT_S
57 virtual int getBackgroundStyle(int, bool) const /*override*/;
58#else // LL_PLAT_C
59 virtual int getBackgroundStyle(int slot, bool) const /*override*/;
60#endif
61
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67#ifdef LL_PLAT_C
68 MCNAPI FurnaceContainerController(::std::shared_ptr<::ContainerModel> containerModel, bool dropOnDelete);
69
70 MCNAPI void clearSelectedRecipe();
71
72 MCNAPI bool isRecipeSmeltable() const;
73
74 MCNAPI void setIsRecipeSmeltable(bool isRecipeSmeltable);
75#endif
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81#ifdef LL_PLAT_C
82 MCNAPI void* $ctor(::std::shared_ptr<::ContainerModel> containerModel, bool dropOnDelete);
83#endif
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCNAPI void $dtor();
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95#ifdef LL_PLAT_C
96 MCNAPI ::ItemInstance const& $getRecipeItem(int) const;
97
98 MCNAPI void $onRecipeSelected(::ItemInstance const& recipeItem, bool displayGhostItems);
99
100 MCNAPI void $setGhostItem(::ItemInstance const& item);
101
102 MCNAPI ::ItemInstance const& $getGhostItem() const;
103
104 MCNAPI int $getBackgroundStyle(int slot, bool) const;
105#endif
106
107
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCNAPI static void** $vftable();
114 // NOLINTEND
115};
Definition ContainerModel.h:28
static MCAPI void ** $vftable()
Definition ItemInstance.h:15