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

Public Types

using DynamicContainerPublisher
 

Public Member Functions

virtual::ContainerScreenContext _postInit ()
 
MCAPI HopperContainerManagerModel (::ContainerID containerId, ::Player &player, ::BlockPos const &blockPos)
 
MCAPI HopperContainerManagerModel (::ContainerID containerId, ::Player &player, ::ActorUniqueID const &uniqueID)
 
MCAPI void * $ctor (::ContainerID containerId, ::Player &player, ::BlockPos const &blockPos)
 
MCAPI void * $ctor (::ContainerID containerId, ::Player &player, ::ActorUniqueID const &uniqueID)
 
MCAPI::ContainerScreenContext $_postInit ()
 
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 bool isValid (float pickRange)
 
MCAPI::BlockActor * _getBlockEntity ()
 
MCAPI::Container * _getRawContainer ()
 
MCAPI void $dtor ()
 
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 bool $isValid (float pickRange)
 
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 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 * $ctor (::ContainerID containerId, ::Player &player)
 
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 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< 4, 12, ::BlockPosmBlockPos
 
::ll::TypedStorage< 8, 8, ::ActorUniqueIDmEntityUniqueID
 
::ll::TypedStorage< 4, 4, ::BlockActorType > mBlockActorType
 
::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

◆ HopperContainerManagerModel() [1/2]

MCAPI HopperContainerManagerModel::HopperContainerManagerModel ( ::ContainerID containerId,
::Player & player,
::BlockPos const & blockPos )
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.

◆ HopperContainerManagerModel() [2/2]

MCAPI HopperContainerManagerModel::HopperContainerManagerModel ( ::ContainerID containerId,
::Player & player,
::ActorUniqueID const & uniqueID )
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

◆ _postInit()

virtual::ContainerScreenContext HopperContainerManagerModel::_postInit ( )
virtual

Implements ContainerManagerModel.

◆ $ctor() [1/3]

MCAPI void * HopperContainerManagerModel::$ctor ( ::ContainerID containerId,
::Player & player,
::BlockPos const & blockPos )
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() [2/3]

MCAPI void * HopperContainerManagerModel::$ctor ( ::ContainerID containerId,
::Player & player,
::ActorUniqueID const & uniqueID )
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 HopperContainerManagerModel::$_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 ** HopperContainerManagerModel::$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.

◆ getItemCopies()

virtual ::std::vector<::ItemStack > LevelContainerManagerModel::getItemCopies ( ) const
virtualinherited

Implements IContainerManager.

◆ setSlot()

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

Implements IContainerManager.

◆ getSlot()

virtual::ItemStack const & LevelContainerManagerModel::getSlot ( int slot) const
virtualinherited

Implements IContainerManager.

◆ setData()

virtual void LevelContainerManagerModel::setData ( int id,
int value )
virtualinherited

Implements IContainerManager.

◆ broadcastChanges()

virtual void LevelContainerManagerModel::broadcastChanges ( )
virtualinherited

Reimplemented from ContainerManagerModel.

◆ isValid()

virtual bool LevelContainerManagerModel::isValid ( float pickRange)
virtualinherited

Reimplemented from ContainerManagerModel.

◆ _getBlockEntity()

MCAPI::BlockActor * LevelContainerManagerModel::_getBlockEntity ( )
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.

◆ _getRawContainer()

MCAPI::Container * LevelContainerManagerModel::_getRawContainer ( )
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 LevelContainerManagerModel::$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.

◆ $getItemCopies()

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

◆ $setSlot()

MCAPI void LevelContainerManagerModel::$setSlot ( int slot,
::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.

◆ $getSlot()

MCAPI::ItemStack const & LevelContainerManagerModel::$getSlot ( int slot) 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.

◆ $setData()

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

◆ $broadcastChanges()

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

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

◆ $ctor() [3/3]

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

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