22class LecternBlockActor :
public ::BlockActor,
public ::Container {
26 ::ll::TypedStorage<4, 4, int> mPage;
27 ::ll::TypedStorage<4, 4, int> mTotalPages;
28 ::ll::TypedStorage<8, 152, ::ItemStack> mBook;
38 virtual ::ItemStack
const& getItem(
int)
const ;
40 virtual void setItem(
int item,
::ItemStack const&) ;
42 virtual int getMaxStackSize()
const ;
44 virtual int getContainerSize()
const ;
46 virtual void startOpen(
::Actor&) ;
48 virtual void stopOpen(
::Actor& actor) ;
50 virtual ::Container* getContainer() ;
52 virtual ::Container
const* getContainer()
const ;
60 virtual void serverInitItemStackIds(
66 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
74 MCAPI
explicit LecternBlockActor(
::BlockPos const& pos);
78 MCFOLD
int getPage()
const;
80 MCFOLD
int getTotalPages()
const;
82 MCAPI
bool hasBook()
const;
84 MCAPI
bool isPageInBounds(
int page)
const;
86 MCAPI
void setItemFromBlock(
int slot,
::ItemStack const& item);
100 MCFOLD ::ItemStack
const& $getItem(
int)
const;
104 MCFOLD
int $getMaxStackSize()
const;
106 MCFOLD
int $getContainerSize()
const;
108 MCFOLD
void $startOpen(
::Actor&);
110 MCFOLD
void $stopOpen(
::Actor& actor);
112 MCFOLD ::Container* $getContainer();
114 MCFOLD ::Container
const* $getContainer()
const;
123 $serverInitItemStackIds(
int containerSlot,
int onNetIdChanged, ::std::function<
void(
int,
::ItemStack const&)>);
125 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
135 MCAPI
static void** $vftableForBlockActor();
137 MCAPI
static void** $vftableForContainer();
Definition SaveContext.h:5