22class ChiseledBookshelfBlockActor :
public ::BlockActor,
public ::Container {
26 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
27 ::ll::TypedStorage<4, 4, uint> mLastInteractedSlot;
32 ChiseledBookshelfBlockActor();
37 virtual ::ItemStack
const& getItem(
int slot)
const ;
39 virtual void setItem(
int slot,
::ItemStack const& item) ;
41 virtual ::std::string getName()
const ;
43 virtual int getMaxStackSize()
const ;
45 virtual int getContainerSize()
const ;
47 virtual void startOpen(
::Actor&) ;
49 virtual void stopOpen(
::Actor& actor) ;
51 virtual ::Container* getContainer() ;
53 virtual ::Container
const* getContainer()
const ;
55 virtual void serverInitItemStackIds(
58 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
61 virtual bool isEmpty()
const ;
63 virtual bool canPushInItem(
int slot,
int item,
::ItemStack const&)
const ;
65 virtual bool canPullOutItem(
int slot,
int,
::ItemStack const&)
const ;
67 virtual bool addItemToFirstEmptySlot(
::ItemStack const& item) ;
75 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
83 MCAPI
explicit ChiseledBookshelfBlockActor(
::BlockPos const& pos);
87 MCAPI
void _setItemInternal(
int slot,
::ItemStack const& item,
bool isLoading);
89 MCFOLD uint getLastInteractedSlot()
const;
91 MCAPI ::ItemStack retrieveBook(
int slot);
97 MCAPI
static bool allowedItem(
::ItemStack const& item);
111 MCAPI ::ItemStack
const& $getItem(
int slot)
const;
113 MCAPI
void $setItem(
int slot,
::ItemStack const& item);
115 MCAPI ::std::string $getName()
const;
117 MCFOLD
int $getMaxStackSize()
const;
119 MCFOLD
int $getContainerSize()
const;
121 MCFOLD
void $startOpen(
::Actor&);
123 MCFOLD
void $stopOpen(
::Actor& actor);
125 MCFOLD ::Container* $getContainer();
127 MCFOLD ::Container
const* $getContainer()
const;
129 MCAPI
void $serverInitItemStackIds(
132 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
135 MCAPI
bool $isEmpty()
const;
137 MCAPI
bool $canPushInItem(
int slot,
int item,
::ItemStack const&)
const;
139 MCAPI
bool $canPullOutItem(
int slot,
int,
::ItemStack const&)
const;
141 MCAPI
bool $addItemToFirstEmptySlot(
::ItemStack const& item);
149 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
159 MCAPI
static void** $vftableForContainer();
161 MCAPI
static void** $vftableForBlockActor();
Definition SaveContext.h:5