15class CraftingContainerController :
public ::ContainerController {
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();
36 virtual ~CraftingContainerController() =
default;
38 virtual ~CraftingContainerController() ;
41 virtual ::ItemInstance
const& getRecipeItem(
int slot)
const = 0;
44 virtual void onRecipeSelected(
::Recipe const*, uint64,
bool);
46 virtual void onRecipeSelected(
::Recipe const* recipe, uint64 gridSize,
bool displayGhostItems);
49 virtual void clearSelectedRecipe();
51 virtual ::Recipe
const* getSelectedRecipe()
const;
56 virtual void setGhostItem(
::ItemInstance const& item,
int slot,
bool showStackSize);
60 virtual ::ItemInstance
const& getGhostItem(
int)
const;
62 virtual ::ItemInstance
const& getGhostItem(
int slot)
const;
71 MCAPI CraftingContainerController(::std::shared_ptr<::ContainerModel> containerModel,
bool dropOnDelete);
79 MCAPI
void* $ctor(::std::shared_ptr<::ContainerModel> containerModel,
bool dropOnDelete);
93 MCAPI
void $onRecipeSelected(
::Recipe const* recipe, uint64 gridSize,
bool displayGhostItems);
95 MCAPI
void $clearSelectedRecipe();
97 MCFOLD ::Recipe
const* $getSelectedRecipe()
const;
99 MCAPI
void $setGhostItem(
::ItemInstance const& item,
int slot,
bool showStackSize);
101 MCAPI ::ItemInstance
const& $getGhostItem(
int slot)
const;