3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/Container.h"
7#include "mc/world/item/ItemStack.h"
8#include "mc/world/level/block/actor/VanillaBlockActor.h"
22class LecternBlockActor :
public ::VanillaBlockActor,
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 slot)
const ;
40 virtual void setItem(
int slot,
::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) ;
92 MCNAPI ::ItemStack
const&
$getItem(
int slot)
const;
117 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
Definition BlockActorDataPacket.h:19
Definition BlockSource.h:72
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition ItemStack.h:26
MCAPI void dropBook(::BlockSource ®ion)
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource ®ion)
MCAPI void setItemFromBlock(int slot, ::ItemStack const &item)
static MCAPI void ** $vftable()
MCAPI void $startOpen(::Actor &)
MCAPI void setPageOnServer(int page, ::BlockSource ®ion)
MCAPI::Container * $getContainer()
MCAPI LecternBlockActor(::BlockPos const &pos)
static MCAPI void ** $vftableForIVanillaTickBlockActorComponent()
MCAPI int $getContainerSize() const
static MCAPI void ** $vftableForBlockActor()
MCAPI::Container const * $getContainer() const
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
static MCAPI void ** $vftableForIVanillaMainBlockActorComponent()
MCAPI void $onChanged(::BlockSource ®ion)
MCAPI void $load(::ILevel &level, ::CompoundTag const &base, ::DataLoadHelper &dataLoadHelper)
MCAPI void $stopOpen(::Actor &actor)
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI void $setItem(int slot, ::ItemStack const &item)
MCAPI int $getMaxStackSize() const
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource ®ion)
MCAPI void * $ctor(::BlockPos const &pos)
MCAPI::ItemStack const & $getItem(int slot) const
Definition SaveContext.h:5