26 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
27 ::ll::TypedStorage<4, 4, uint> mLastInteractedSlot;
38 virtual ::ItemStack
const& getItem(
int slot)
const ;
41 virtual void setItem(
int slot,
::ItemStack const& item) ;
44 virtual ::std::string getName()
const ;
47 virtual int getMaxStackSize()
const ;
50 virtual int getContainerSize()
const ;
53 virtual void startOpen(
::Actor&) ;
56 virtual void stopOpen(
::Actor& actor) ;
59 virtual ::Container* getContainer() ;
62 virtual ::Container
const* getContainer()
const ;
65 virtual void serverInitItemStackIds(
68 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
72 virtual bool isEmpty()
const ;
75 virtual bool canPushInItem(
int slot,
int,
::ItemStack const& item)
const ;
78 virtual bool canPullOutItem(
int slot,
int,
::ItemStack const&)
const ;
81 virtual bool addItemToFirstEmptySlot(
::ItemStack const& item) ;
93 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
109 MCAPI
void _setItemInternal(
int slot,
::ItemStack const& item,
bool isLoading);
111 MCAPI ::ItemStack retrieveBook(
int slot);
117 MCAPI
static bool allowedItem(
::ItemStack const& item);
137 MCAPI ::ItemStack
const& $getItem(
int slot)
const;
139 MCAPI
void $setItem(
int slot,
::ItemStack const& item);
141 MCAPI ::std::string $getName()
const;
143 MCFOLD
int $getMaxStackSize()
const;
145 MCFOLD
int $getContainerSize()
const;
147 MCFOLD
void $startOpen(
::Actor&);
149 MCFOLD
void $stopOpen(
::Actor& actor);
151 MCFOLD ::Container* $getContainer();
153 MCFOLD ::Container
const* $getContainer()
const;
155 MCAPI
void $serverInitItemStackIds(
158 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
161 MCAPI
bool $isEmpty()
const;
163 MCAPI
bool $canPushInItem(
int slot,
int,
::ItemStack const& item)
const;
165 MCAPI
bool $canPullOutItem(
int slot,
int,
::ItemStack const&)
const;
167 MCAPI
bool $addItemToFirstEmptySlot(
::ItemStack const& item);
175 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
183 MCAPI
static void** $vftableForContainer();
185 MCAPI
static void** $vftableForBlockActor();
Definition SaveContext.h:5