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;
29 CraftingContainerController();
35 virtual ~CraftingContainerController() =
default;
37 virtual ::ItemInstance
const& getRecipeItem(
int index)
const = 0;
39 virtual void onRecipeSelected(
::Recipe const* recipe, uint64 gridSize,
bool displayGhostItems);
41 virtual void clearSelectedRecipe();
43 virtual ::Recipe
const* getSelectedRecipe()
const;
45 virtual void setGhostItem(
::ItemInstance const& item,
int slot,
bool showStackSize);
47 virtual ::ItemInstance
const& getGhostItem(
int slot)
const;
54 MCAPI CraftingContainerController(::std::shared_ptr<::ContainerModel> containerModel,
bool dropOnDelete);
62 MCAPI
void* $ctor(::std::shared_ptr<::ContainerModel> containerModel,
bool dropOnDelete);
70 MCAPI
void $onRecipeSelected(
::Recipe const* recipe, uint64 gridSize,
bool displayGhostItems);
72 MCAPI
void $clearSelectedRecipe();
74 MCFOLD ::Recipe
const* $getSelectedRecipe()
const;
76 MCAPI
void $setGhostItem(
::ItemInstance const& item,
int slot,
bool showStackSize);
78 MCAPI ::ItemInstance
const& $getGhostItem(
int slot)
const;