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() ;
57 MCAPI ContainerComponent(::ContainerComponent&& other);
59 MCAPI
bool _tryMoveInItem(
::ItemStack& item,
int slot,
int face,
int itemCount);
63 MCAPI
bool addItem(
::ItemStack& item,
int face,
int itemCount);
65 MCAPI
bool canOpenContainer(
::Actor const& containerActor,
::Player& player)
const;
67 MCAPI
int countItemsOfType(
::ItemStack const& item)
const;
71 MCAPI
void dropSlotContent(
::BlockSource& region,
::Vec3 const& pos,
bool randomizeDrop,
int slot);
73 MCAPI
int getEmptySlotsCount()
const;
77 MCAPI
bool isEmpty()
const;
81 MCAPI ::ContainerComponent& operator=(::ContainerComponent&& other);
85 MCAPI
void rebuildContainer(
87 ::SharedTypes::Legacy::ContainerType type,
89 bool canBesiphonedFrom,
94 MCAPI
void removeItemsOfType(
::ItemStack const& item,
int count);
97 serverInitItemStackIds(
int containerSlot,
int count, ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged);
99 MCAPI
void setCustomName(::std::string
const& name);
101 MCAPI
void setLootTable(::std::string
const& lootTable,
int lootTableSeed);
109 MCAPI
void* $ctor(::ContainerComponent&& other);
121 MCAPI
void $containerContentChanged(
int iSlot);
123 MCAPI
void $containerClosed(
::Actor& actor);
Definition ContainerContentChangeListener.h:5