LeviLamina
Loading...
Searching...
No Matches
ContainerManagerModel Class Referenceabstract
+ Inheritance diagram for ContainerManagerModel:

Public Types

using DynamicContainerPublisher
 

Public Member Functions

ContainerManagerModeloperator= (ContainerManagerModel const &)
 
 ContainerManagerModel (ContainerManagerModel const &)
 
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
 
virtual void broadcastChanges ()
 
virtual::ContainerScreenContext _postInit ()=0
 
MCAPI ContainerManagerModel (::ContainerID containerId, ::Player &player)
 
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 * $ctor (::ContainerID containerId, ::Player &player)
 
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
 
MCAPI void $broadcastChanges ()
 
virtual ::std::vector<::ItemStackgetItemCopies () const =0
 
virtual void setSlot (int, ::ItemStack const &, bool)=0
 
virtual::ItemStack const & getSlot (int) const =0
 
virtual void setData (int, int)=0
 

Static Public Member Functions

static MCAPI void ** $vftable ()
 

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

◆ DynamicContainerPublisher

Constructor & Destructor Documentation

◆ ContainerManagerModel()

MCAPI ContainerManagerModel::ContainerManagerModel ( ::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

◆ getContainerId()

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

Implements IContainerManager.

◆ setContainerId()

virtual void ContainerManagerModel::setContainerId ( ::ContainerID )
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.

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

◆ _isPlayerInRangeOfPosition()

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

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

◆ postInit()

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

◆ $ctor()

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

◆ $dtor()

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

◆ $tick()

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

◆ $serverInitItemStackIds()

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

◆ $vftable()

static MCAPI void ** ContainerManagerModel::$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: