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

Public Member Functions

virtual ::std::unique_ptr<::ListTag > serializeContainerContent (::FullContainerName const &name, ::SaveContext const &saveContext)
virtual ::std::optional< int > getDynamicContainerWeight (::FullContainerName const &name)
virtual bool hasContainer (::FullContainerName const &name) const
virtual ::std::shared_ptr<::StorageItemContainerModel > getModel (::FullContainerName const &name)
virtual ::std::shared_ptr<::FillingContainer > getBackingContainer (::FullContainerName const &name)
virtual void tryCreateEntry (::StorageItemComponent *storageItemComponent, ::StorageWeightLimitItemComponent *storageWeightLimitItemComponent, ::FullContainerName const &name)
virtual ::std::unique_ptr<::DynamicContainerManager > createContainerManager (::FullContainerName const &id, ::ItemStack const &storageItem, ::StorageItemComponent *storageItemComponent, ::StorageWeightLimitItemComponent *storageWeightLimitItemComponent)
virtual uint generateNewID ()
virtual void tryLoadSavedStorageItem (::ListTag const &contentData, ::FullContainerName const &name)
virtual void setExpired (::std::vector<::FullContainerName > const &removedContainers)
virtual uint64 getSize ()
MCAPI ContainerRegistry (bool isClientSide)
MCAPI::DynamicTrackedContainer & _getOrCreate (::FullContainerName const &id, ::StorageItemComponent *storageItemComponent, ::StorageWeightLimitItemComponent *storageWeightLimitItemComponent)
MCAPI int _tick (::std::function< void(::Packet &)> broadcastPacketFunction, int ticksSinceLastCleanup)
MCAPI void * $ctor (bool isClientSide)
MCAPI ::std::unique_ptr<::ListTag > $serializeContainerContent (::FullContainerName const &name, ::SaveContext const &saveContext)
MCAPI ::std::optional< int > $getDynamicContainerWeight (::FullContainerName const &name)
MCAPI bool $hasContainer (::FullContainerName const &name) const
MCAPI ::std::shared_ptr<::StorageItemContainerModel > $getModel (::FullContainerName const &name)
MCAPI ::std::shared_ptr<::FillingContainer > $getBackingContainer (::FullContainerName const &name)
MCAPI void $tryCreateEntry (::StorageItemComponent *storageItemComponent, ::StorageWeightLimitItemComponent *storageWeightLimitItemComponent, ::FullContainerName const &name)
MCAPI ::std::unique_ptr<::DynamicContainerManager > $createContainerManager (::FullContainerName const &id, ::ItemStack const &storageItem, ::StorageItemComponent *storageItemComponent, ::StorageWeightLimitItemComponent *storageWeightLimitItemComponent)
MCAPI uint $generateNewID ()
MCAPI void $tryLoadSavedStorageItem (::ListTag const &contentData, ::FullContainerName const &name)
MCAPI void $setExpired (::std::vector<::FullContainerName > const &removedContainers)
MCAPI uint64 $getSize ()

Static Public Member Functions

static MCAPI void ** $vftableForIDynamicContainerSerialization ()
static MCAPI void ** $vftableForIContainerRegistryTracker ()
static MCAPI void ** $vftableForIContainerRegistryAccess ()

Public Attributes

::ll::TypedStorage< 4, 4, uint > mNextDynamicId
::ll::TypedStorage< 8, 64, ::std::unordered_map<::FullContainerName, ::DynamicTrackedContainer > > mContainers
::ll::TypedStorage< 1, 1, bool const > mIsClientSide
::ll::TypedStorage< 4, 4, int > mTicksSinceLastCleanup
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::Bedrock::Threading::SharedRecursiveMutex > > mContainerContextMutex

Constructor & Destructor Documentation

◆ ContainerRegistry()

MCAPI ContainerRegistry::ContainerRegistry ( bool isClientSide)
explicit
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

◆ serializeContainerContent()

virtual ::std::unique_ptr<::ListTag > ContainerRegistry::serializeContainerContent ( ::FullContainerName const & name,
::SaveContext const & saveContext )
virtual

◆ getDynamicContainerWeight()

virtual ::std::optional< int > ContainerRegistry::getDynamicContainerWeight ( ::FullContainerName const & name)
virtual

◆ hasContainer()

virtual bool ContainerRegistry::hasContainer ( ::FullContainerName const & name) const
virtual

◆ getModel()

virtual ::std::shared_ptr<::StorageItemContainerModel > ContainerRegistry::getModel ( ::FullContainerName const & name)
virtual

◆ getBackingContainer()

virtual ::std::shared_ptr<::FillingContainer > ContainerRegistry::getBackingContainer ( ::FullContainerName const & name)
virtual

◆ tryCreateEntry()

virtual void ContainerRegistry::tryCreateEntry ( ::StorageItemComponent * storageItemComponent,
::StorageWeightLimitItemComponent * storageWeightLimitItemComponent,
::FullContainerName const & name )
virtual

◆ createContainerManager()

virtual ::std::unique_ptr<::DynamicContainerManager > ContainerRegistry::createContainerManager ( ::FullContainerName const & id,
::ItemStack const & storageItem,
::StorageItemComponent * storageItemComponent,
::StorageWeightLimitItemComponent * storageWeightLimitItemComponent )
virtual

◆ generateNewID()

virtual uint ContainerRegistry::generateNewID ( )
virtual

◆ tryLoadSavedStorageItem()

virtual void ContainerRegistry::tryLoadSavedStorageItem ( ::ListTag const & contentData,
::FullContainerName const & name )
virtual

◆ setExpired()

virtual void ContainerRegistry::setExpired ( ::std::vector<::FullContainerName > const & removedContainers)
virtual

◆ getSize()

virtual uint64 ContainerRegistry::getSize ( )
virtual

◆ _getOrCreate()

MCAPI::DynamicTrackedContainer & ContainerRegistry::_getOrCreate ( ::FullContainerName const & id,
::StorageItemComponent * storageItemComponent,
::StorageWeightLimitItemComponent * storageWeightLimitItemComponent )
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 int ContainerRegistry::_tick ( ::std::function< void(::Packet &)> broadcastPacketFunction,
int ticksSinceLastCleanup )
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 * ContainerRegistry::$ctor ( bool isClientSide)
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.

◆ $serializeContainerContent()

MCAPI ::std::unique_ptr<::ListTag > ContainerRegistry::$serializeContainerContent ( ::FullContainerName const & name,
::SaveContext const & saveContext )
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.

◆ $getDynamicContainerWeight()

MCAPI ::std::optional< int > ContainerRegistry::$getDynamicContainerWeight ( ::FullContainerName const & name)
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.

◆ $hasContainer()

MCAPI bool ContainerRegistry::$hasContainer ( ::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.

◆ $getModel()

MCAPI ::std::shared_ptr<::StorageItemContainerModel > ContainerRegistry::$getModel ( ::FullContainerName const & name)
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.

◆ $getBackingContainer()

MCAPI ::std::shared_ptr<::FillingContainer > ContainerRegistry::$getBackingContainer ( ::FullContainerName const & name)
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.

◆ $tryCreateEntry()

MCAPI void ContainerRegistry::$tryCreateEntry ( ::StorageItemComponent * storageItemComponent,
::StorageWeightLimitItemComponent * storageWeightLimitItemComponent,
::FullContainerName const & name )
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.

◆ $createContainerManager()

MCAPI ::std::unique_ptr<::DynamicContainerManager > ContainerRegistry::$createContainerManager ( ::FullContainerName const & id,
::ItemStack const & storageItem,
::StorageItemComponent * storageItemComponent,
::StorageWeightLimitItemComponent * storageWeightLimitItemComponent )
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.

◆ $generateNewID()

MCAPI uint ContainerRegistry::$generateNewID ( )
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.

◆ $tryLoadSavedStorageItem()

MCAPI void ContainerRegistry::$tryLoadSavedStorageItem ( ::ListTag const & contentData,
::FullContainerName const & name )
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.

◆ $setExpired()

MCAPI void ContainerRegistry::$setExpired ( ::std::vector<::FullContainerName > const & removedContainers)
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.

◆ $getSize()

MCAPI uint64 ContainerRegistry::$getSize ( )
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.

◆ $vftableForIDynamicContainerSerialization()

MCAPI void ** ContainerRegistry::$vftableForIDynamicContainerSerialization ( )
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.

◆ $vftableForIContainerRegistryTracker()

MCAPI void ** ContainerRegistry::$vftableForIContainerRegistryTracker ( )
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.

◆ $vftableForIContainerRegistryAccess()

MCAPI void ** ContainerRegistry::$vftableForIContainerRegistryAccess ( )
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: