LeviLamina
Loading...
Searching...
No Matches
ContainerComponent Class Reference
+ Inheritance diagram for ContainerComponent:

Public Member Functions

ContainerComponentoperator= (ContainerComponent const &)
 
 ContainerComponent (ContainerComponent const &)
 
virtual void containerContentChanged (int iSlot)
 
virtual void containerClosed (::Player &player)
 
MCAPI ContainerComponent (::ContainerComponent &&other)
 
MCAPI bool _tryMoveInItem (::ItemStack &item, int slot, int face, int itemCount)
 
MCAPI void addAdditionalSaveData (::CompoundTag &tag) const
 
MCAPI bool addItem (::ItemActor &entity)
 
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 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 &tag, ::CompoundTag const &, ::DataLoadHelper &)
 
MCAPI void rebuildContainer (::Actor &owner, ::SharedTypes::Legacy::ContainerType type, int size, bool canBesiphonedFrom, int isPrivate, bool)
 
MCAPI void removeItemsOfType (::ItemStack const &item, int count)
 
MCAPI void setCustomName (::std::string const &name)
 
MCAPI bool setItem (int slot, ::ItemStack const &item)
 
MCAPI void unpackLootTable (::Level &level, ::DimensionType dimensionId)
 
MCAPI void * $ctor (::ContainerComponent &&other)
 
MCAPI void $dtor ()
 
MCAPI void $containerContentChanged (int iSlot)
 
MCAPI void $containerClosed (::Player &player)
 

Static Public Member Functions

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

Public Attributes

::ll::TypedStorage< 8, 520, ::FillingContainermContainer
 
::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
 

Member Function Documentation

◆ containerContentChanged()

virtual void ContainerComponent::containerContentChanged ( int iSlot)
virtual

◆ containerClosed()

virtual void ContainerComponent::containerClosed ( ::Player & player)
virtual

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