3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/shared_types/legacy/ContainerType.h"
7#include "mc/world/ContainerCloseListener.h"
8#include "mc/world/ContainerContentChangeListener.h"
9#include "mc/world/inventory/FillingContainer.h"
29 ::ll::TypedStorage<8, 440, ::FillingContainer> mContainer;
30 ::ll::TypedStorage<8, 8, ::Actor*> mListenerShim;
31 ::ll::TypedStorage<1, 1, bool> mCanBeSiphonedFrom;
32 ::ll::TypedStorage<1, 1, bool> mPrivate;
33 ::ll::TypedStorage<1, 1, bool> mRestrictToOwner;
34 ::ll::TypedStorage<8, 32, ::std::string> mLootTable;
35 ::ll::TypedStorage<4, 4, int> mLootTableSeed;
40 ContainerComponent& operator=(ContainerComponent
const&);
41 ContainerComponent(ContainerComponent
const&);
47 virtual void containerContentChanged(
int iSlot) ;
49 virtual void containerClosed(
::Actor& actor) ;
51 virtual ~ContainerComponent() ;
81 MCNAPI ::ContainerComponent&
operator=(::ContainerComponent&& other);
85 MCAPI
void rebuildContainer(
87 ::SharedTypes::Legacy::ContainerType type,
89 bool canBesiphonedFrom,
99 MCAPI
void setCustomName(::std::string
const& name);
101 MCNAPI
void setLootTable(::std::string
const& lootTable,
int lootTableSeed);
109 MCNAPI
void*
$ctor(::ContainerComponent&& other);
Definition BlockSource.h:72
Definition CompoundTag.h:18
Definition ContainerCloseListener.h:10
MCAPI void readAdditionalSaveData(::Actor &, ::CompoundTag const &tag, ::DataLoadHelper &)
MCAPI ContainerComponent(::ContainerComponent &&other)
MCAPI void * $ctor(::ContainerComponent &&other)
MCAPI int countItemsOfType(::ItemStack const &item) const
MCAPI::ContainerComponent & operator=(::ContainerComponent &&other)
MCAPI void $containerClosed(::Actor &actor)
MCAPI void initFromDefinition(::Actor &actor, ::ContainerDescription const &desc)
MCAPI void addAdditionalSaveData(::CompoundTag &tag) const
MCAPI void serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI void unpackLootTable(::Level &level, ::DimensionType dimensionId, ::Actor &owner)
MCAPI void $containerContentChanged(int iSlot)
MCAPI bool addItem(::ItemStack &item, int face, int itemCount)
static MCAPI void ** $vftableForContainerContentChangeListener()
MCAPI void setLootTable(::std::string const &lootTable, int lootTableSeed)
MCAPI void dropSlotContent(::BlockSource ®ion, ::Vec3 const &pos, bool randomizeDrop, int slot)
MCAPI bool _tryMoveInItem(::ItemStack &item, int slot, int face, int itemCount)
MCAPI int getEmptySlotsCount() const
static MCAPI void ** $vftableForContainerCloseListener()
MCAPI bool canOpenContainer(::Actor const &containerActor, ::Player &player) const
MCAPI bool isEmpty() const
MCAPI void removeItemsOfType(::ItemStack const &item, int count)
Definition ContainerContentChangeListener.h:5
Definition DataLoadHelper.h:20
Definition ItemStack.h:26
Definition ContainerDescription.h:14
Definition DimensionType.h:5