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

Public Member Functions

LevelContainerModel & operator= (LevelContainerModel const &)
 LevelContainerModel (LevelContainerModel const &)
virtual void releaseResources ()
virtual void containerContentChanged (int slot)
virtual bool isValid ()
virtual::ContainerWeakRef getContainerWeakRef () const
virtual void postInit ()
virtual bool isSlotDisabled (int slot) const
virtual int _getContainerOffset () const
virtual void _onItemChanged (int modelSlot, ::ItemStack const &oldItem, ::ItemStack const &newItem)
virtual::Container * _getContainer () const
MCAPI void containerRemoved ()
MCAPI void $releaseResources ()
MCAPI void $containerContentChanged (int slot)
MCAPI bool $isValid ()
MCAPI::ContainerWeakRef $getContainerWeakRef () const
MCAPI void $postInit ()
MCAPI bool $isSlotDisabled (int slot) const
MCAPI int $_getContainerOffset () const
MCAPI void $_onItemChanged (int modelSlot, ::ItemStack const &oldItem, ::ItemStack const &newItem)
MCAPI::Container * $_getContainer () const
virtual int getContainerSize () const
virtual int getFilteredContainerSize () const
virtual void tick (int selectedSlot)
virtual::ItemStack const & getItemStack (int modelSlot) const
virtual ::std::vector<::ItemStack > const & getItems () const
virtual::ItemInstance const & getItemInstance (int modelSlot) const
virtual::ItemStackBase const & getItemStackBase (int modelSlot) const
virtual bool isItemInstanceBased () const
virtual void setItem (int modelSlot, ::ItemStack const &item)
virtual bool isItemFiltered (::ItemStackBase const &item) const
virtual bool isExpanableItemFiltered (int index) const
virtual::ContainerExpandStatus getItemExpandStatus (int itemId) const
virtual::std::string const & getItemGroupName (int itemId) const
virtual void switchItemExpando (int itemId)
virtual void refreshContainer (bool fullRefresh)
virtual void _init ()
MCAPI void _onClientUIItemNetworkChanged (int containerSlot, ::ItemStack const &oldItem, ::ItemStack const &newItem)
MCAPI void networkUpdateItem (int modelSlot, ::ItemStack const &oldItem, ::ItemStack const &newItem)
MCAPI void registerOnContainerChangedCallback (::std::function< void(int, ::ItemStack const &, ::ItemStack const &)> callback)
MCAPI void registerPlayerNotificationCallback (::std::function< void(int, ::ItemStack const &, ::ItemStack const &)> callback)
MCAPI void setClientUIContainer (::SparseContainerClient *clientUIContainer)
MCAPI void * $ctor (::FullContainerName const &fullContainerName, int containerSize, ::ContainerCategory containerCategory, bool isClientSide)
MCAPI void $dtor ()
MCAPI int $getContainerSize () const
MCAPI int $getFilteredContainerSize () const
MCFOLD void $tick (int selectedSlot)
MCAPI::ItemStack const & $getItemStack (int modelSlot) const
MCAPI ::std::vector<::ItemStack > const & $getItems () const
MCAPI::ItemInstance const & $getItemInstance (int modelSlot) const
MCAPI::ItemStackBase const & $getItemStackBase (int modelSlot) const
MCFOLD bool $isItemInstanceBased () const
MCAPI void $setItem (int modelSlot, ::ItemStack const &item)
MCFOLD bool $isItemFiltered (::ItemStackBase const &item) const
MCFOLD bool $isExpanableItemFiltered (int index) const
MCFOLD::ContainerExpandStatus $getItemExpandStatus (int itemId) const
MCFOLD::std::string const & $getItemGroupName (int itemId) const
MCFOLD void $switchItemExpando (int itemId)
MCFOLD void $refreshContainer (bool fullRefresh)
MCAPI void $_init ()

Static Public Member Functions

static MCAPI ::Container * getContainerHelper (::Player &player, ::ActorUniqueID const &actorUniqueId)
static MCAPI ::Container * getContainerHelper (::Player &player, ::BlockActorType blockActorType, ::BlockPos const &blockPos)
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 8, ::Player & > mPlayer
::ll::TypedStorage< 4, 12, ::BlockPos > mBlockPos
::ll::TypedStorage< 1, 1, ::BlockActorType > mBlockEntityType
::ll::TypedStorage< 8, 8, ::ActorUniqueID > mEntityUniqueId
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mContainerRemovedSubscription
::ll::TypedStorage< 1, 1, bool const > mIsClientSide
::ll::TypedStorage< 8, 32, ::std::string > mContainerStringName
::ll::TypedStorage< 4, 12, ::FullContainerName const > mFullContainerName
::ll::TypedStorage< 8, 64, ::std::unordered_map< ::SharedTypes::Legacy::ContainerType, ::std::function< void(int, ::ItemStack const &, ::ItemStack const &)> > > mTrackedOnContainerChangedCallbacks
::ll::TypedStorage< 8, 24, ::std::vector<::std::function< void(int, ::ItemStack const &, ::ItemStack const &)> > > mOnContainerChangedCallbacks
::ll::TypedStorage< 8, 64, ::std::function< void(int, ::ItemStack const &, ::ItemStack const &)> > mPlayerNotificationCallbacks
::ll::TypedStorage< 4, 4, ::ContainerCategory > mContainerCategory
::ll::TypedStorage< 8, 24, ::std::vector<::SlotData > > mItemSource
::ll::TypedStorage< 8, 8, ::SparseContainerClient * > mClientUIContainer
::ll::TypedStorage< 8, 24, ::std::vector<::ItemStack > > mItems

Member Function Documentation

◆ releaseResources()

virtual void LevelContainerModel::releaseResources ( )
virtual

Reimplemented from ContainerModel.

◆ containerContentChanged()

virtual void LevelContainerModel::containerContentChanged ( int slot)
virtual

Reimplemented from ContainerModel.

◆ isValid()

virtual bool LevelContainerModel::isValid ( )
virtual

Reimplemented from ContainerModel.

◆ postInit()

virtual void LevelContainerModel::postInit ( )
virtual

Reimplemented from ContainerModel.

◆ isSlotDisabled()

virtual bool LevelContainerModel::isSlotDisabled ( int slot) const
virtual

Reimplemented from ContainerModel.

◆ _getContainerOffset()

virtual int LevelContainerModel::_getContainerOffset ( ) const
virtual

Reimplemented from ContainerModel.

◆ _onItemChanged()

virtual void LevelContainerModel::_onItemChanged ( int modelSlot,
::ItemStack const & oldItem,
::ItemStack const & newItem )
virtual

Reimplemented from ContainerModel.

◆ containerRemoved()

MCAPI void LevelContainerModel::containerRemoved ( )
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.

◆ getContainerHelper() [1/2]

MCAPI ::Container * LevelContainerModel::getContainerHelper ( ::Player & player,
::ActorUniqueID const & actorUniqueId )
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.

◆ getContainerHelper() [2/2]

MCAPI ::Container * LevelContainerModel::getContainerHelper ( ::Player & player,
::BlockActorType blockActorType,
::BlockPos const & blockPos )
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.

◆ $releaseResources()

MCAPI void LevelContainerModel::$releaseResources ( )
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 LevelContainerModel::$containerContentChanged ( 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.

◆ $isValid()

MCAPI bool LevelContainerModel::$isValid ( )
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.

◆ $getContainerWeakRef()

MCAPI::ContainerWeakRef LevelContainerModel::$getContainerWeakRef ( ) 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.

◆ $postInit()

MCAPI void LevelContainerModel::$postInit ( )
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.

◆ $isSlotDisabled()

MCAPI bool LevelContainerModel::$isSlotDisabled ( int slot) 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.

◆ $_getContainerOffset()

MCAPI int LevelContainerModel::$_getContainerOffset ( ) 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.

◆ $_getContainer()

MCAPI::Container * LevelContainerModel::$_getContainer ( ) 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.

◆ _onClientUIItemNetworkChanged()

MCAPI void ContainerModel::_onClientUIItemNetworkChanged ( int containerSlot,
::ItemStack const & oldItem,
::ItemStack const & newItem )
inherited
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.

◆ networkUpdateItem()

MCAPI void ContainerModel::networkUpdateItem ( int modelSlot,
::ItemStack const & oldItem,
::ItemStack const & newItem )
inherited
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.

◆ registerOnContainerChangedCallback()

MCAPI void ContainerModel::registerOnContainerChangedCallback ( ::std::function< void(int, ::ItemStack const &, ::ItemStack const &)> callback)
inherited
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.

◆ registerPlayerNotificationCallback()

MCAPI void ContainerModel::registerPlayerNotificationCallback ( ::std::function< void(int, ::ItemStack const &, ::ItemStack const &)> callback)
inherited
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.

◆ setClientUIContainer()

MCAPI void ContainerModel::setClientUIContainer ( ::SparseContainerClient * clientUIContainer)
inherited
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.

◆ $getItemStack()

MCAPI::ItemStack const & ContainerModel::$getItemStack ( int modelSlot) const
inherited
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.

◆ $getItems()

MCAPI ::std::vector<::ItemStack > const & ContainerModel::$getItems ( ) const
inherited
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.

◆ $setItem()

MCAPI void ContainerModel::$setItem ( int modelSlot,
::ItemStack const & item )
inherited
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.

◆ $_init()

MCAPI void ContainerModel::$_init ( )
inherited
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: