Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ContainerComponent Class Reference
Inheritance diagram for ContainerComponent:

Public Member Functions

ContainerComponent & operator= (ContainerComponent const &)
 ContainerComponent (ContainerComponent const &)
virtual void containerContentChanged (int iSlot)
virtual void containerClosed (::Actor &actor)
MCAPI ContainerComponent (::ContainerComponent &&other)
MCAPI bool _tryMoveInItem (::ItemStack &item, int slot, int face, int itemCount)
MCAPI void addAdditionalSaveData (::CompoundTag &tag) const
MCAPI bool addItem (::ItemStack &item, int face, int itemCount)
MCAPI bool canOpenContainer (::Actor const &containerActor, ::Player &player) const
MCAPI int countItemsOfType (::ItemStack const &item) const
MCAPI void dropContents (::BlockSource &region, ::Vec3 const &pos, bool randomizeDrop)
MCAPI void dropSlotContent (::BlockSource &region, ::Vec3 const &pos, bool randomizeDrop, int slot)
MCAPI int getEmptySlotsCount () const
MCAPI void initFromDefinition (::Actor &actor, ::ContainerDescription const &desc)
MCAPI bool isEmpty () const
MCAPI bool openContainer (::Actor &containerActor, ::Player &player)
MCAPI::ContainerComponent & operator= (::ContainerComponent &&other)
MCAPI void readAdditionalSaveData (::Actor &, ::CompoundTag const &tag, ::DataLoadHelper &)
MCAPI void rebuildContainer (::Actor &owner, ::SharedTypes::Legacy::ContainerType type, int size, bool canBesiphonedFrom, int, bool isPrivate)
MCAPI void removeItemsOfType (::ItemStack const &item, int count)
MCAPI void serverInitItemStackIds (int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI void setCustomName (::std::string const &name)
MCAPI void setLootTable (::std::string const &lootTable, int lootTableSeed)
MCAPI void unpackLootTable (::Level &level, ::DimensionType dimensionId, ::Actor &owner)
MCAPI void * $ctor (::ContainerComponent &&other)
MCAPI void $dtor ()
MCAPI void $containerContentChanged (int iSlot)
MCAPI void $containerClosed (::Actor &actor)

Static Public Member Functions

static MCAPI void ** $vftableForContainerContentChangeListener ()
static MCAPI void ** $vftableForContainerCloseListener ()

Public Attributes

::ll::TypedStorage< 8, 440, ::FillingContainer > mContainer
::ll::TypedStorage< 8, 8, ::Actor * > mListenerShim
::ll::TypedStorage< 1, 1, bool > mCanBeSiphonedFrom
::ll::TypedStorage< 1, 1, bool > mPrivate
::ll::TypedStorage< 1, 1, bool > mRestrictToOwner
::ll::TypedStorage< 8, 32, ::std::string > mLootTable
::ll::TypedStorage< 4, 4, int > mLootTableSeed

Constructor & Destructor Documentation

◆ ContainerComponent()

MCAPI ContainerComponent::ContainerComponent ( ::ContainerComponent && other)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ containerContentChanged()

virtual void ContainerComponent::containerContentChanged ( int iSlot)
virtual

◆ containerClosed()

virtual void ContainerComponent::containerClosed ( ::Actor & actor)
virtual

◆ _tryMoveInItem()

MCAPI bool ContainerComponent::_tryMoveInItem ( ::ItemStack & item,
int slot,
int face,
int itemCount )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addAdditionalSaveData()

MCAPI void ContainerComponent::addAdditionalSaveData ( ::CompoundTag & tag) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addItem()

MCAPI bool ContainerComponent::addItem ( ::ItemStack & item,
int face,
int itemCount )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ canOpenContainer()

MCAPI bool ContainerComponent::canOpenContainer ( ::Actor const & containerActor,
::Player & player ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ countItemsOfType()

MCAPI int ContainerComponent::countItemsOfType ( ::ItemStack const & item) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ dropSlotContent()

MCAPI void ContainerComponent::dropSlotContent ( ::BlockSource & region,
::Vec3 const & pos,
bool randomizeDrop,
int slot )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getEmptySlotsCount()

MCAPI int ContainerComponent::getEmptySlotsCount ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ initFromDefinition()

MCAPI void ContainerComponent::initFromDefinition ( ::Actor & actor,
::ContainerDescription const & desc )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ isEmpty()

MCAPI bool ContainerComponent::isEmpty ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ operator=()

MCAPI::ContainerComponent & ContainerComponent::operator= ( ::ContainerComponent && other)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ readAdditionalSaveData()

MCAPI void ContainerComponent::readAdditionalSaveData ( ::Actor & ,
::CompoundTag const & tag,
::DataLoadHelper &  )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removeItemsOfType()

MCAPI void ContainerComponent::removeItemsOfType ( ::ItemStack const & item,
int count )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ serverInitItemStackIds()

MCAPI void ContainerComponent::serverInitItemStackIds ( int containerSlot,
int count,
::std::function< void(int, ::ItemStack const &)> onNetIdChanged )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setLootTable()

MCAPI void ContainerComponent::setLootTable ( ::std::string const & lootTable,
int lootTableSeed )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ unpackLootTable()

MCAPI void ContainerComponent::unpackLootTable ( ::Level & level,
::DimensionType dimensionId,
::Actor & owner )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * ContainerComponent::$ctor ( ::ContainerComponent && other)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void ContainerComponent::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $containerContentChanged()

MCAPI void ContainerComponent::$containerContentChanged ( int iSlot)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $containerClosed()

MCAPI void ContainerComponent::$containerClosed ( ::Actor & actor)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftableForContainerContentChangeListener()

MCAPI void ** ContainerComponent::$vftableForContainerContentChangeListener ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftableForContainerCloseListener()

MCAPI void ** ContainerComponent::$vftableForContainerCloseListener ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: