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

Public Member Functions

virtual void postInit ()
 
virtual void releaseResources ()
 
virtual void containerContentChanged (int slot)
 
virtual int getContainerSize () const
 
virtual int getFilteredContainerSize () const
 
virtual void tick (int selectedSlot)
 
virtual::ContainerWeakRef getContainerWeakRef () const
 
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 isValid ()
 
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 bool isSlotDisabled (int) const
 
virtual::Container * _getContainer () const
 
virtual int _getContainerOffset () const
 
virtual void _init ()
 
virtual void _onItemChanged (int modelSlot, ::ItemStack const &oldItem, ::ItemStack const &newItem)
 
MCAPI ContainerModel (::FullContainerName const &fullContainerName, int containerSize, ::ContainerCategory containerCategory, bool isClientSide)
 
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 setItemSource (int slot, ::SlotData const &srcSlot)
 
MCAPI void * $ctor (::FullContainerName const &fullContainerName, int containerSize, ::ContainerCategory containerCategory, bool isClientSide)
 
MCAPI void $dtor ()
 
MCAPI void $postInit ()
 
MCAPI void $releaseResources ()
 
MCAPI void $containerContentChanged (int slot)
 
MCAPI int $getContainerSize () const
 
MCAPI int $getFilteredContainerSize () const
 
MCAPI void $tick (int selectedSlot)
 
MCAPI::ContainerWeakRef $getContainerWeakRef () const
 
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
 
MCAPI bool $isItemInstanceBased () const
 
MCAPI void $setItem (int modelSlot, ::ItemStack const &item)
 
MCAPI bool $isValid ()
 
MCAPI bool $isItemFiltered (::ItemStackBase const &item) const
 
MCAPI bool $isExpanableItemFiltered (int index) const
 
MCAPI::ContainerExpandStatus $getItemExpandStatus (int itemId) const
 
MCAPI::std::string const & $getItemGroupName (int itemId) const
 
MCAPI void $switchItemExpando (int itemId)
 
MCAPI bool $isSlotDisabled (int) const
 
MCAPI::Container * $_getContainer () const
 
MCAPI int $_getContainerOffset () const
 
MCAPI void $_init ()
 
MCAPI void $_onItemChanged (int modelSlot, ::ItemStack const &oldItem, ::ItemStack const &newItem)
 

Static Public Member Functions

static MCAPI void ** $vftable ()
 

Public Attributes

::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< 8, 24, ::std::vector<::Bedrock::PubSub::Publisher< void(::ItemStackBase const &), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0 > > > mContainerSlotChangePublishers
 
::ll::TypedStorage< 4, 4, ::ContainerCategory > mContainerCategory
 
::ll::TypedStorage< 8, 24, ::std::vector<::SlotData > > mItemSource
 
::ll::TypedStorage< 8, 8, ::SparseContainerClient * > mClientUIContainer
 
::ll::TypedStorage< 8, 48, ::Bedrock::PubSub::Publisher< void(int), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0 > > mContainerSizeChangePublisher
 
::ll::TypedStorage< 8, 24, ::std::vector<::ItemStack > > mItems
 

Constructor & Destructor Documentation

◆ ContainerModel()

MCAPI ContainerModel::ContainerModel ( ::FullContainerName const & fullContainerName,
int containerSize,
::ContainerCategory containerCategory,
bool isClientSide )
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 ContainerModel::containerContentChanged ( int slot)
virtual

◆ _onClientUIItemNetworkChanged()

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

◆ setItemSource()

MCAPI void ContainerModel::setItemSource ( int slot,
::SlotData const & srcSlot )
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 * ContainerModel::$ctor ( ::FullContainerName const & fullContainerName,
int containerSize,
::ContainerCategory containerCategory,
bool isClientSide )
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 ContainerModel::$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.

◆ $postInit()

MCAPI void ContainerModel::$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.

◆ $releaseResources()

MCAPI void ContainerModel::$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 ContainerModel::$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.

◆ $getContainerSize()

MCAPI int ContainerModel::$getContainerSize ( ) 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.

◆ $getFilteredContainerSize()

MCAPI int ContainerModel::$getFilteredContainerSize ( ) 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.

◆ $tick()

MCAPI void ContainerModel::$tick ( int selectedSlot)
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 ContainerModel::$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.

◆ $getItemStack()

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

◆ $getItems()

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

◆ $getItemInstance()

MCAPI::ItemInstance const & ContainerModel::$getItemInstance ( int modelSlot) 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.

◆ $getItemStackBase()

MCAPI::ItemStackBase const & ContainerModel::$getItemStackBase ( int modelSlot) 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.

◆ $isItemInstanceBased()

MCAPI bool ContainerModel::$isItemInstanceBased ( ) 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.

◆ $setItem()

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

◆ $isItemFiltered()

MCAPI bool ContainerModel::$isItemFiltered ( ::ItemStackBase 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.

◆ $isExpanableItemFiltered()

MCAPI bool ContainerModel::$isExpanableItemFiltered ( int index) 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.

◆ $getItemExpandStatus()

MCAPI::ContainerExpandStatus ContainerModel::$getItemExpandStatus ( int itemId) 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.

◆ $getItemGroupName()

MCAPI::std::string const & ContainerModel::$getItemGroupName ( int itemId) 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.

◆ $switchItemExpando()

MCAPI void ContainerModel::$switchItemExpando ( int itemId)
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 ContainerModel::$isSlotDisabled ( int ) 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 * ContainerModel::$_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.

◆ $_getContainerOffset()

MCAPI int ContainerModel::$_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.

◆ $_init()

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

◆ $_onItemChanged()

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

◆ $vftable()

static MCAPI void ** ContainerModel::$vftable ( )
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: