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 index)
const ;
40 virtual void setItem(
int modelSlot,
::ItemStack const& item) ;
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(
63 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
66 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource& region) ;
70 virtual ~LecternBlockActor() =
default;
76 MCAPI
explicit LecternBlockActor(
::BlockPos const& pos);
78 MCAPI
void setItemFromBlock(
int slot,
::ItemStack const& item);
92 MCAPI ::ItemStack
const& $getItem(
int index)
const;
94 MCAPI
void $setItem(
int modelSlot,
::ItemStack const& item);
96 MCFOLD
int $getMaxStackSize()
const;
98 MCFOLD
int $getContainerSize()
const;
100 MCFOLD
void $startOpen(
::Actor&);
102 MCFOLD
void $stopOpen(
::Actor& actor);
104 MCFOLD ::Container* $getContainer();
106 MCFOLD ::Container
const* $getContainer()
const;
114 MCAPI
void $serverInitItemStackIds(
117 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
120 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource& region);
130 MCAPI
static void** $vftableForBlockActor();
132 MCAPI
static void** $vftableForContainer();
Definition SaveContext.h:5