File FillingContainer.hpp

class FillingContainer : public Container

Subclassed by Inventory

Public Functions

FillingContainer(Player *player, int size, ContainerType type)
virtual ~FillingContainer() = default
virtual void serverInitItemStackIds(int, int, std::function<void(int, const ItemStack&)>) override
virtual const ItemStack &getItem(int slot) const override
virtual void setItem(int slot, const ItemStack &item) override
virtual void setItemWithForceBalance(int, const ItemStack&, bool) override
virtual void removeItem(int, int) override
virtual int getContainerSize() const override
virtual int getMaxStackSize() const override
virtual void startOpen(Player&) override
virtual void add(ItemStack &item)
virtual bool canAdd(const ItemStack &item)
virtual void clearSlot(int slot)
virtual void clearInventory(int size)
virtual void load(const ListTag &tag, const SemVersion &version, Level&)

Public Members

std::vector<ItemStack> mItems
Player *mPlayer