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

Public Types

using DynamicContainerRemovalPublisher
using ItemStackVector = ::std::vector<::ItemStack>
using DynamicContainerPublisher

Public Member Functions

virtual ::std::vector<::ItemStack > getItemCopies () const
virtual void setSlot (int slot, ::ItemStack const &item, bool)
virtual::ItemStack const & getSlot (int slot) const
virtual void setData (int id, int value)
virtual void broadcastChanges ()
virtual::ContainerScreenContext _postInit ()
MCAPI HudContainerManagerModel (::ContainerID containerId, ::Player &player)
MCAPI void * $ctor (::ContainerID containerId, ::Player &player)
MCAPI ::std::vector<::ItemStack > $getItemCopies () const
MCAPI void $setSlot (int slot, ::ItemStack const &item, bool)
MCAPI::ItemStack const & $getSlot (int slot) const
MCAPI void $setData (int id, int value)
MCAPI void $broadcastChanges ()
MCAPI::ContainerScreenContext $_postInit ()
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 _onDynamicContainerContentsChanged ()
virtual void setSelectedRecipeIndex (int recipeIndex, bool fromNetwork)
virtual ::std::optional< int > getSelectedRecipeIndex () const
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 $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 $_onDynamicContainerContentsChanged ()
MCAPI void $setSelectedRecipeIndex (int recipeIndex, bool fromNetwork)
MCAPI ::std::optional< int > $getSelectedRecipeIndex () const

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::ItemStack > > mLastSlots
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::std::vector<::std::string > const &), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnDynamicContainerRemovalPublisher
::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< 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

◆ DynamicContainerRemovalPublisher

using HudContainerManagerModel::DynamicContainerRemovalPublisher
Initial value:
::Bedrock::PubSub::
Publisher<void(::std::vector<::std::string> const&), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0>

◆ DynamicContainerPublisher

using ContainerManagerModel::DynamicContainerPublisher
inherited

Constructor & Destructor Documentation

◆ HudContainerManagerModel()

MCAPI HudContainerManagerModel::HudContainerManagerModel ( ::ContainerID containerId,
::Player & player )
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

◆ getItemCopies()

virtual ::std::vector<::ItemStack > HudContainerManagerModel::getItemCopies ( ) const
virtual

Implements IContainerManager.

◆ setSlot()

virtual void HudContainerManagerModel::setSlot ( int slot,
::ItemStack const & item,
bool  )
virtual

Implements IContainerManager.

◆ getSlot()

virtual::ItemStack const & HudContainerManagerModel::getSlot ( int slot) const
virtual

Implements IContainerManager.

◆ setData()

virtual void HudContainerManagerModel::setData ( int id,
int value )
virtual

Implements IContainerManager.

◆ broadcastChanges()

virtual void HudContainerManagerModel::broadcastChanges ( )
virtual

Reimplemented from ContainerManagerModel.

◆ _postInit()

virtual::ContainerScreenContext HudContainerManagerModel::_postInit ( )
virtual

Implements ContainerManagerModel.

◆ $ctor()

MCAPI void * HudContainerManagerModel::$ctor ( ::ContainerID containerId,
::Player & player )
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.

◆ $getItemCopies()

MCAPI ::std::vector<::ItemStack > HudContainerManagerModel::$getItemCopies ( ) 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.

◆ $setSlot()

MCAPI void HudContainerManagerModel::$setSlot ( int slot,
::ItemStack const & item,
bool  )
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.

◆ $getSlot()

MCAPI::ItemStack const & HudContainerManagerModel::$getSlot ( 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.

◆ $setData()

MCAPI void HudContainerManagerModel::$setData ( int id,
int value )
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.

◆ $broadcastChanges()

MCAPI void HudContainerManagerModel::$broadcastChanges ( )
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::ContainerScreenContext HudContainerManagerModel::$_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.

◆ $vftable()

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

◆ getContainerId()

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

Implements IContainerManager.

◆ setContainerId()

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

Implements IContainerManager.

◆ getContainerType()

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

Implements IContainerManager.

◆ setContainerType()

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

Implements IContainerManager.

◆ registerContainerTypeListener()

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

Implements IContainerManager.

◆ serverInitItemStackIds()

virtual void ContainerManagerModel::serverInitItemStackIds ( )
virtualinherited

Implements IContainerManager.

◆ setFullContainerSlot()

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

Implements IContainerManager.

◆ getFullContainerSlot()

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

Implements IContainerManager.

◆ setSelectedRecipeIndex()

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

Implements IContainerManager.

◆ getSelectedRecipeIndex()

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

Implements IContainerManager.

◆ _addContainer()

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

◆ addDynamicContainer()

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

◆ $isValid()

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

◆ $_onDynamicContainerContentsChanged()

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

◆ $setSelectedRecipeIndex()

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

◆ $getSelectedRecipeIndex()

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

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