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 index)
const ;
39 virtual void setItem(
int modelSlot,
::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,
::ItemStack const& item)
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&) ;
79 virtual ~ChiseledBookshelfBlockActor() =
default;
85 MCAPI
explicit ChiseledBookshelfBlockActor(
::BlockPos const& pos);
89 MCAPI
void _setItemInternal(
int slot,
::ItemStack const& item,
bool isLoading);
91 MCAPI ::ItemStack retrieveBook(
int slot);
97 MCAPI
static bool allowedItem(
::ItemStack const& item);
109 MCAPI ::ItemStack
const& $getItem(
int index)
const;
111 MCAPI
void $setItem(
int modelSlot,
::ItemStack const& item);
113 MCAPI ::std::string $getName()
const;
115 MCFOLD
int $getMaxStackSize()
const;
117 MCFOLD
int $getContainerSize()
const;
119 MCFOLD
void $startOpen(
::Actor&);
121 MCFOLD
void $stopOpen(
::Actor& actor);
123 MCFOLD ::Container* $getContainer();
125 MCFOLD ::Container
const* $getContainer()
const;
127 MCAPI
void $serverInitItemStackIds(
130 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
133 MCAPI
bool $isEmpty()
const;
135 MCAPI
bool $canPushInItem(
int slot,
int,
::ItemStack const& item)
const;
137 MCAPI
bool $canPullOutItem(
int slot,
int,
::ItemStack const&)
const;
139 MCAPI
bool $addItemToFirstEmptySlot(
::ItemStack const& item);
147 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
157 MCAPI
static void** $vftableForContainer();
159 MCAPI
static void** $vftableForBlockActor();
Definition SaveContext.h:5