26 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
27 ::ll::TypedStorage<4, 4, uint> mLastInteractedSlot;
34 virtual ::ItemStack
const& getItem(
int slot)
const ;
37 virtual void setItem(
int modelSlot,
::ItemStack const& item) ;
40 virtual ::std::string getName()
const ;
43 virtual int getMaxStackSize()
const ;
46 virtual int getContainerSize()
const ;
52 virtual void stopOpen(
::Player& player) ;
55 virtual ::Container* getContainer() ;
58 virtual ::Container
const* getContainer()
const ;
61 virtual void serverInitItemStackIds(
64 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
68 virtual bool isEmpty()
const ;
71 virtual bool canPushInItem(
int slot,
int,
::ItemStack const& item)
const ;
74 virtual bool canPullOutItem(
int slot,
int,
::ItemStack const&)
const ;
77 virtual bool addItemToFirstEmptySlot(
::ItemStack const& item) ;
89 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
105 MCAPI
void _setItemInternal(
int slot,
::ItemStack const& item,
bool isLoading);
107 MCAPI ::ItemStack retrieveBook(
int slot);
113 MCAPI
static bool allowedItem(
::ItemStack const& item);
131 MCAPI ::ItemStack
const& $getItem(
int slot)
const;
133 MCAPI
void $setItem(
int modelSlot,
::ItemStack const& item);
135 MCAPI ::std::string $getName()
const;
137 MCFOLD
int $getMaxStackSize()
const;
139 MCFOLD
int $getContainerSize()
const;
143 MCFOLD
void $stopOpen(
::Player& player);
145 MCFOLD ::Container* $getContainer();
147 MCFOLD ::Container
const* $getContainer()
const;
149 MCAPI
void $serverInitItemStackIds(
152 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
155 MCAPI
bool $isEmpty()
const;
157 MCAPI
bool $canPushInItem(
int slot,
int,
::ItemStack const& item)
const;
159 MCAPI
bool $canPullOutItem(
int slot,
int,
::ItemStack const&)
const;
161 MCAPI
bool $addItemToFirstEmptySlot(
::ItemStack const& item);
169 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
177 MCAPI
static void** $vftableForContainer();
179 MCAPI
static void** $vftableForBlockActor();
Definition SaveContext.h:5