3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/Container.h"
7#include "mc/world/level/block/actor/BlockActor.h"
26 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
27 ::ll::TypedStorage<4, 4, uint> mLastInteractedSlot;
38 virtual ::ItemStack
const& getItem(
int slot)
const ;
41 virtual void setItem(
int slot,
::ItemStack const& item) ;
44 virtual ::std::string getName()
const ;
47 virtual int getMaxStackSize()
const ;
50 virtual int getContainerSize()
const ;
56 virtual void stopOpen(
::Player& player) ;
59 virtual ::Container* getContainer() ;
62 virtual ::Container
const* getContainer()
const ;
65 virtual void serverInitItemStackIds(
68 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
72 virtual bool isEmpty()
const ;
75 virtual bool canPushInItem(
int slot,
int,
::ItemStack const& item)
const ;
78 virtual bool canPullOutItem(
int slot,
int,
::ItemStack const&)
const ;
81 virtual bool addItemToFirstEmptySlot(
::ItemStack const& item) ;
93 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
129 MCNAPI ::ItemStack
const&
$getItem(
int slot)
const;
150 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockSource.h:67
Definition ChiseledBookshelfBlockActor.h:22
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI void $stopOpen(::Player &player)
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &)
MCAPI bool $isEmpty() const
MCAPI::std::string $getName() const
MCAPI ChiseledBookshelfBlockActor(::BlockPos const &pos)
MCAPI void $setItem(int slot, ::ItemStack const &item)
MCAPI void $startOpen(::Player &)
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource ®ion)
MCAPI bool $canPushInItem(int slot, int, ::ItemStack const &item) const
MCAPI int $getMaxStackSize() const
static MCAPI void ** $vftableForContainer()
MCAPI::Container * $getContainer()
MCAPI void $onChanged(::BlockSource ®ion)
MCAPI void _setItemInternal(int slot, ::ItemStack const &item, bool isLoading)
MCAPI int $getContainerSize() const
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI void * $ctor(::BlockPos const &pos)
MCAPI bool $addItemToFirstEmptySlot(::ItemStack const &item)
static MCAPI void ** $vftableForBlockActor()
MCAPI::ItemStack retrieveBook(int slot)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI bool $canPullOutItem(int slot, int, ::ItemStack const &) const
static MCAPI bool allowedItem(::ItemStack const &item)
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI void _loadItems(::CompoundTag const &base, ::ILevel &level)
MCAPI::Container const * $getContainer() const
Definition CompoundTag.h:13
Definition Container.h:30
Definition DataLoadHelper.h:20
Definition ItemStack.h:25
Definition SaveContext.h:5