21class ContainerController {
25 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::ContainerModel>> mContainerModel;
26 ::ll::TypedStorage<1, 1, bool> mDrop;
33 ContainerController();
39 virtual ~ContainerController() =
default;
42 virtual ::ItemInstance
const& getRecipeItem(
int)
const;
44 virtual ::ItemInstance
const& getRecipeItem(
int slot)
const;
48 virtual bool canRemove(
int,
int)
const;
50 virtual bool canRemove(
int slot,
int removeCount)
const;
66 virtual int getBackgroundStyle(
int,
bool)
const;
68 virtual int getBackgroundStyle(
int slot,
bool inventoryContainsItem)
const;
75 virtual ::ItemSetType _canSet(
91 virtual bool _canRemove(
int,
int)
const;
93 virtual bool _canRemove(
int modelSlot,
int removeCount)
const;
96 virtual void _onItemChanged(
int);
103 MCAPI ContainerController(::std::weak_ptr<::ContainerModel> containerModel,
bool shouldDrop);
107 MCAPI ::ItemAddType _canAdd(
114 MCFOLD
bool canConsume(
int modelSlot,
int removeCount)
const;
116 MCFOLD
bool canDestroy(
int modelSlot,
int removeCount)
const;
118 MCFOLD
bool canDrop(
int modelSlot,
int removeCount)
const;
120 MCAPI ::ItemSetType canSet(
131 MCAPI ::std::weak_ptr<::ContainerModel> getContainerModel()
const;
133 MCAPI ::std::string
const& getContainerName()
const;
135 MCAPI
int getContainerSize()
const;
137 MCFOLD ::ItemInstance
const& getItemInstance(
int slot)
const;
139 MCAPI ::ItemStack
const& getItemStack(
int slot)
const;
141 MCAPI ::ItemStackBase
const& getItemStackBase(
int slot)
const;
143 MCAPI
bool isExpandableItemFiltered(
int slot)
const;
145 MCAPI
bool isItemInstanceBased()
const;
147 MCAPI ::ItemStack removeItem(
int slot,
int removeCount);
153 ::ItemPlaceType type,
163 MCAPI
void* $ctor(::std::weak_ptr<::ContainerModel> containerModel,
bool shouldDrop);
171 MCFOLD ::ItemInstance
const& $getRecipeItem(
int slot)
const;
173 MCAPI
bool $canRemove(
int slot,
int removeCount)
const;
179 MCFOLD
int $getBackgroundStyle(
int slot,
bool inventoryContainsItem)
const;
181 MCAPI ::ItemSetType $_canSet(
191 MCAPI
bool $_canRemove(
int modelSlot,
int removeCount)
const;
193 MCFOLD
void $_onItemChanged(
int);
Definition ContainerScreenContext.h:19