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<::ItemStackgetItemCopies () 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)
 
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
 
MCAPI void _addContainer (::std::shared_ptr<::ContainerModel > containerModel)
 
MCAPI bool _isPlayerInRangeOfPosition (::BlockPos const &blockPos, float pickRange) const
 
MCAPI void addDynamicContainer (::std::shared_ptr<::ContainerModel > model)
 
MCAPI void postInit ()
 
MCAPI void $dtor ()
 
MCAPI bool $tick ()
 
MCAPI::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
 

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, ::ContainerScreenContextmScreenContext
 
::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

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()

static 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 )
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.

◆ _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.

◆ _isPlayerInRangeOfPosition()

MCAPI bool ContainerManagerModel::_isPlayerInRangeOfPosition ( ::BlockPos const & blockPos,
float pickRange ) 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.

◆ 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.

◆ postInit()

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

◆ $dtor()

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

◆ $tick()

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

◆ $getContainerType()

MCAPI::SharedTypes::Legacy::ContainerType ContainerManagerModel::$getContainerType ( ) 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.

◆ $setContainerType()

MCAPI void ContainerManagerModel::$setContainerType ( ::SharedTypes::Legacy::ContainerType type)
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.

◆ $registerContainerTypeListener()

MCAPI::Bedrock::PubSub::Subscription ContainerManagerModel::$registerContainerTypeListener ( ::std::function< void(::SharedTypes::Legacy::ContainerType)> callback) 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.

◆ $debitPlayerLevels()

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

◆ $isCreativeMode()

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

◆ $isClientSide()

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

◆ $isServerAuthoritative()

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

◆ $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.

◆ $serverInitItemStackIds()

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

◆ $setFullContainerSlot()

MCAPI void ContainerManagerModel::$setFullContainerSlot ( int slot,
::FullContainerName const & name,
::ItemStack const & item,
bool  )
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.

◆ $getFullContainerSlot()

MCAPI::ItemStack const & ContainerManagerModel::$getFullContainerSlot ( int slot,
::FullContainerName const & name ) 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: