30 ::ll::TypedStorage<8, 440, ::FillingContainer> mContainer;
31 ::ll::TypedStorage<8, 8, ::Actor*> mListenerShim;
32 ::ll::TypedStorage<1, 1, bool> mCanBeSiphonedFrom;
33 ::ll::TypedStorage<1, 1, bool> mPrivate;
34 ::ll::TypedStorage<1, 1, bool> mRestrictToOwner;
35 ::ll::TypedStorage<8, 32, ::std::string> mLootTable;
36 ::ll::TypedStorage<4, 4, int> mLootTableSeed;
41 ContainerComponent& operator=(ContainerComponent
const&);
42 ContainerComponent(ContainerComponent
const&);
47 virtual void containerContentChanged(
int iSlot) ;
49 virtual void containerClosed(
::Actor& actor) ;
55 MCAPI ContainerComponent();
57 MCAPI ContainerComponent(::ContainerComponent&& other);
59 MCFOLD ::FillingContainer* _getRawContainerPtr();
61 MCAPI
bool _tryMoveInItem(
::ItemStack& item,
int slot,
int face,
int itemCount);
69 MCAPI
bool addItem(
::ItemStack& item,
int face,
int itemCount);
71 MCAPI
bool canBeSiphonedFrom()
const;
73 MCAPI
bool canOpenContainer(
::Actor const& containerActor,
::Player& player)
const;
75 MCAPI
int countItemsOfType(
::ItemStack const& item)
const;
79 MCAPI
void dropSlotContent(
::BlockSource& region,
::Vec3 const& pos,
bool randomizeDrop,
int slot);
81 MCAPI
int findFirstSlotForItem(
::ItemStack const& item)
const;
83 MCAPI
int getContainerSize()
const;
85 MCAPI
int getEmptySlotsCount()
const;
87 MCAPI ::ItemStack
const& getItem(
int slot)
const;
89 MCAPI ::std::vector<::ItemStack const*>
const getSlots()
const;
91 MCAPI
bool hasRoomForItem(
::ItemActor const& entity)
const;
93 MCAPI
bool hasRoomForItem(
::ItemStack const& item)
const;
95 MCAPI
void initFromDefinition(
::Actor& actor);
99 MCAPI
bool isEmpty()
const;
101 MCAPI
bool isPrivate()
const;
105 MCAPI ::ContainerComponent& operator=(::ContainerComponent&& other);
109 MCAPI
void rebuildContainer(
111 ::SharedTypes::Legacy::ContainerType type,
113 bool canBesiphonedFrom,
118 MCAPI
void removeItem(
int slot,
int count);
120 MCAPI
void removeItemsOfType(
::ItemStack const& item,
int count);
123 serverInitItemStackIds(
int containerSlot,
int count, ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged);
125 MCAPI
void setCustomName(::std::string
const& name);
127 MCAPI
bool setItem(
int slot,
::ItemStack const& item);
129 MCAPI
void setLootTable(::std::string
const& lootTable,
int lootTableSeed);
139 MCAPI
void* $ctor(::ContainerComponent&& other);
145 MCAPI
void $containerContentChanged(
int iSlot);
147 MCAPI
void $containerClosed(
::Actor& actor);
Definition ContainerContentChangeListener.h:5