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

Public Types

using DynamicContainerPublisher

Public Member Functions

ContainerManagerModel & operator= (ContainerManagerModel const &)
 ContainerManagerModel (ContainerManagerModel const &)
virtual bool tick ()
virtual::ContainerID getContainerId () const
virtual void setContainerId (::ContainerID id)
virtual::SharedTypes::Legacy::ContainerType getContainerType () const
virtual void setContainerType (::SharedTypes::Legacy::ContainerType type)
virtual::Bedrock::PubSub::Subscription registerContainerTypeListener (::std::function< void(::SharedTypes::Legacy::ContainerType)> callback) const
virtual void debitPlayerLevels (int levels)
virtual bool isCreativeMode () const
virtual bool isClientSide () const
virtual bool isServerAuthoritative () const
virtual bool isValid (float pickRange)
virtual void serverInitItemStackIds ()
virtual void setFullContainerSlot (int slot, ::FullContainerName const &name, ::ItemStack const &item, bool)
virtual::ItemStack const & getFullContainerSlot (int slot, ::FullContainerName const &name) const
virtual void broadcastChanges ()
virtual::ContainerScreenContext _postInit ()=0
virtual void _onDynamicContainerContentsChanged ()
virtual void setSelectedRecipeIndex (int recipeIndex, bool fromNetwork)
virtual ::std::optional< int > getSelectedRecipeIndex () const
MCAPI ContainerManagerModel (::ContainerID containerId, ::Player &player)
MCAPI void _addContainer (::std::shared_ptr<::ContainerModel > containerModel)
MCAPI ::std::shared_ptr<::ContainerModel > _getContainer (::ContainerEnumName collectionEnumName) const
MCAPI void addDynamicContainer (::std::shared_ptr<::ContainerModel > model)
MCAPI void postInit ()
MCAPI void * $ctor (::ContainerID containerId, ::Player &player)
MCAPI void $dtor ()
MCFOLD bool $tick ()
MCFOLD::ContainerID $getContainerId () const
MCAPI void $setContainerId (::ContainerID id)
MCFOLD::SharedTypes::Legacy::ContainerType $getContainerType () const
MCAPI void $setContainerType (::SharedTypes::Legacy::ContainerType type)
MCAPI::Bedrock::PubSub::Subscription $registerContainerTypeListener (::std::function< void(::SharedTypes::Legacy::ContainerType)> callback) const
MCAPI void $debitPlayerLevels (int levels)
MCAPI bool $isCreativeMode () const
MCAPI bool $isClientSide () const
MCAPI bool $isServerAuthoritative () const
MCAPI bool $isValid (float pickRange)
MCAPI void $serverInitItemStackIds ()
MCAPI void $setFullContainerSlot (int slot, ::FullContainerName const &name, ::ItemStack const &item, bool)
MCAPI::ItemStack const & $getFullContainerSlot (int slot, ::FullContainerName const &name) const
MCAPI void $broadcastChanges ()
MCAPI void $_onDynamicContainerContentsChanged ()
MCAPI void $setSelectedRecipeIndex (int recipeIndex, bool fromNetwork)
MCAPI ::std::optional< int > $getSelectedRecipeIndex () const
virtual ::std::vector<::ItemStack > getItemCopies () const =0
virtual void setSlot (int slot, ::ItemStack const &item, bool fromNetwork)=0
virtual::ItemStack const & getSlot (int slot) const =0
virtual void setData (int id, int value)=0

Public Attributes

::ll::TypedStorage< 8, 8, ::gsl::not_null<::std::unique_ptr<::PlayerContainerRefresher > > > mContainerRefresher
::ll::TypedStorage< 8, 16, ::gsl::not_null<::std::shared_ptr<::DynamicContainerTracker > > > mDynamicContainerTracker
::ll::TypedStorage< 8, 16, ::WeakRef<::IContainerRegistryAccess > > mRegistryAccess
::ll::TypedStorage< 8, 8, ::Player & > mPlayer
::ll::TypedStorage< 8, 24, ::std::vector<::ItemStack > > mLastSlots
::ll::TypedStorage< 1, 1, ::ContainerID > mContainerId
::ll::TypedStorage< 1, 1, ::SharedTypes::Legacy::ContainerType > mContainerType
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Bedrock::PubSub::Publisher< void(::SharedTypes::Legacy::ContainerType), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0 > > > mContainerTypeSubscribers
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ContainerManagerController const *, ::std::function< void(::ContainerManagerModel &)> > > mInformControllerOfDestructionCallbacks
::ll::TypedStorage< 8, 40, ::ContainerScreenContext > mScreenContext
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::shared_ptr<::ContainerModel > > > mContainers
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnDynamicContainerChangePublisher

Member Typedef Documentation

◆ DynamicContainerPublisher

using ContainerManagerModel::DynamicContainerPublisher

Member Function Documentation

◆ getContainerId()

virtual::ContainerID ContainerManagerModel::getContainerId ( ) const
virtual

Implements IContainerManager.

◆ setContainerId()

virtual void ContainerManagerModel::setContainerId ( ::ContainerID id)
virtual

Implements IContainerManager.

◆ getContainerType()

virtual::SharedTypes::Legacy::ContainerType ContainerManagerModel::getContainerType ( ) const
virtual

Implements IContainerManager.

◆ setContainerType()

virtual void ContainerManagerModel::setContainerType ( ::SharedTypes::Legacy::ContainerType type)
virtual

Implements IContainerManager.

◆ registerContainerTypeListener()

virtual::Bedrock::PubSub::Subscription ContainerManagerModel::registerContainerTypeListener ( ::std::function< void(::SharedTypes::Legacy::ContainerType)> callback) const
virtual

Implements IContainerManager.

◆ serverInitItemStackIds()

virtual void ContainerManagerModel::serverInitItemStackIds ( )
virtual

Implements IContainerManager.

◆ setFullContainerSlot()

virtual void ContainerManagerModel::setFullContainerSlot ( int slot,
::FullContainerName const & name,
::ItemStack const & item,
bool  )
virtual

Implements IContainerManager.

◆ getFullContainerSlot()

virtual::ItemStack const & ContainerManagerModel::getFullContainerSlot ( int slot,
::FullContainerName const & name ) const
virtual

Implements IContainerManager.

◆ broadcastChanges()

virtual void ContainerManagerModel::broadcastChanges ( )
virtual

Implements IContainerManager.

◆ setSelectedRecipeIndex()

virtual void ContainerManagerModel::setSelectedRecipeIndex ( int recipeIndex,
bool fromNetwork )
virtual

Implements IContainerManager.

◆ getSelectedRecipeIndex()

virtual ::std::optional< int > ContainerManagerModel::getSelectedRecipeIndex ( ) const
virtual

Implements IContainerManager.

◆ _addContainer()

MCAPI void ContainerManagerModel::_addContainer ( ::std::shared_ptr<::ContainerModel > containerModel)
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.

◆ addDynamicContainer()

MCAPI void ContainerManagerModel::addDynamicContainer ( ::std::shared_ptr<::ContainerModel > model)
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 ContainerManagerModel::$isValid ( float pickRange)
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.

◆ $_onDynamicContainerContentsChanged()

MCAPI void ContainerManagerModel::$_onDynamicContainerContentsChanged ( )
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.

◆ $setSelectedRecipeIndex()

MCAPI void ContainerManagerModel::$setSelectedRecipeIndex ( int recipeIndex,
bool fromNetwork )
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.

◆ $getSelectedRecipeIndex()

MCAPI ::std::optional< int > ContainerManagerModel::$getSelectedRecipeIndex ( ) 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.

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