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

Classes

struct  ResourcePackManagerArgs

Public Types

using ResourceFileExtensionSetType = ::gsl::span<::std::string const>

Public Member Functions

MCAPI ResourcePackManager (::ResourcePackLoader::ConstructorKey, ::ResourcePackManager::ResourcePackManagerArgs args)
MCAPI void _calculateMinEngineVersionFromFullStack ()
MCAPI void _composeFullStack ()
MCAPI void _updateLanguageSubpacks ()
MCAPI void clearStack (::ResourcePackStackType stackType)
MCAPI int composeFullStack (::ResourcePackStack &output, ::ResourcePackStack const &globalStack, ::ResourcePackStack const &levelStack) const
MCAPI void iteratePacks (::std::function< void(::PackInstance const &)> const &pred) const
MCAPI void removeIf (::std::function< bool(::PackInstance const &)> const &pred)
MCAPI bool setStack (::std::unique_ptr<::ResourcePackStack > stack, ::ResourcePackStackType stackType)
MCAPI void * $ctor (::ResourcePackLoader::ConstructorKey, ::ResourcePackManager::ResourcePackManagerArgs args)
virtual bool load (::ResourceLocation const &resourceLocation, ::std::string &resourceStream) const
virtual bool load (::ResourceLocation const &resourceLocation, ::std::string &resourceStream, ::gsl::span<::std::string const > extensionList) const
virtual bool load (::ResourceLocationPair const &resourceLocationPair, ::std::string &resourceStream, ::gsl::span<::std::string const > extensionList) const
virtual ::Core::PathBuffer<::std::string > getPath (::ResourceLocation const &resourceLocation) const
virtual ::Core::PathBuffer<::std::string > getPath (::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensionList) const
virtual ::Core::PathBuffer<::std::string > getPathContainingResource (::ResourceLocation const &resourceLocation) const
virtual ::std::pair< int, ::std::string_view > getPackStackIndexOfResource (::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensionList) const
virtual bool hasCapability (::std::string_view requiredCapability) const
MCAPI ::std::vector<::PackInstance > getPacksWhereAssetExtractionNotViable (::std::function<::std::string(::ContentIdentity const &)> getContentKey, ::std::string const &sourceContext) const
MCAPI::ResourceGroup getResourcesOfGroup (::std::string const &group) const
MCAPI::ResourceGroup getResourcesOfGroup (::PackInstance const &packInstance, ::std::string const &group) const
MCAPI bool isAssetExtractionViableForFullStack (::std::function<::std::string(::ContentIdentity const &)> getContentKey, ::std::string const &sourceContext) const
MCAPI bool $load (::ResourceLocation const &resourceLocation, ::std::string &resourceStream) const
MCAPI bool $load (::ResourceLocation const &resourceLocation, ::std::string &resourceStream, ::gsl::span<::std::string const > extensionList) const
MCAPI bool $load (::ResourceLocationPair const &resourceLocationPair, ::std::string &resourceStream, ::gsl::span<::std::string const > extensionList) const
MCAPI ::Core::PathBuffer<::std::string > $getPath (::ResourceLocation const &resourceLocation) const
MCAPI ::Core::PathBuffer<::std::string > $getPath (::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensionList) const
MCAPI ::Core::PathBuffer<::std::string > $getPathContainingResource (::ResourceLocation const &resourceLocation) const
MCAPI ::std::pair< int, ::std::string_view > $getPackStackIndexOfResource (::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensionList) const
MCAPI bool $hasCapability (::std::string_view requiredCapability) const
virtual::mce::Image loadTexture (::ResourceLocation const &resourceLocation) const =0
MCAPI void * $ctor (::std::function<::Core::PathBuffer<::std::string >()> getPath)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI ::OwnerPtr<::ResourcePackManager > create (::ResourcePackManager::ResourcePackManagerArgs args)
static MCAPI bool _alwaysPassingPackFilter (::PackInstance const &)
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_set<::gsl::not_null<::ResourcePackListener * > > > mListeners
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ResourcePackStack > > mLevelStack
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ResourcePackStack > > mGlobalStack
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ResourcePackStack > > mTreatmentStack
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ResourcePackStack > > mBaseGameStack
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::PackSourceReport > > mLoadingReport
::ll::TypedStorage< 8, 32, ::std::string > mLocaleCode
::ll::TypedStorage< 1, 1, bool > mInitializing
::ll::TypedStorage< 1, 1, bool > mPendingRestack
::ll::TypedStorage< 1, 1, bool > mUseGlobalPackStack
::ll::TypedStorage< 1, 1, bool > mGameplayResourcesLoaded
::ll::TypedStorage< 8, 8, ::std::shared_mutex > mFullStackAccess
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const > > mContentTierManager
::ll::TypedStorage< 8, 24, ::SemVersion > mFullStackMinEngineVersion_DEPRECATED_DONOTUSE
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ResourcePackStack > > mFullStack
::ll::TypedStorage< 8, 16, ::WeakRef<::ResourcePackLoader > > mWeakThis
::ll::TypedStorage< 8, 64, ::Bedrock::Resources::CategoryFileMapping > mCategoryFileMapping
::ll::TypedStorage< 8, 64, ::Bedrock::Resources::CategoryMergeStrategyFactory<::LoadedResourceData, ::ResourceMergeOptions > > mMergeStrategyFactory
::ll::TypedStorage< 8, 64, ::std::function<::Core::PathBuffer<::std::string >()> > mGetPath
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Constructor & Destructor Documentation

◆ ResourcePackManager()

MCAPI ResourcePackManager::ResourcePackManager ( ::ResourcePackLoader::ConstructorKey ,
::ResourcePackManager::ResourcePackManagerArgs args )
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

◆ _calculateMinEngineVersionFromFullStack()

MCAPI void ResourcePackManager::_calculateMinEngineVersionFromFullStack ( )
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.

◆ _updateLanguageSubpacks()

MCAPI void ResourcePackManager::_updateLanguageSubpacks ( )
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.

◆ clearStack()

MCAPI void ResourcePackManager::clearStack ( ::ResourcePackStackType stackType)
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.

◆ removeIf()

MCAPI void ResourcePackManager::removeIf ( ::std::function< bool(::PackInstance const &)> const & pred)
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.

◆ create()

MCAPI ::OwnerPtr<::ResourcePackManager > ResourcePackManager::create ( ::ResourcePackManager::ResourcePackManagerArgs args)
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.

◆ $ctor() [1/2]

MCAPI void * ResourcePackManager::$ctor ( ::ResourcePackLoader::ConstructorKey ,
::ResourcePackManager::ResourcePackManagerArgs args )
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.

◆ load() [1/3]

virtual bool ResourcePackLoader::load ( ::ResourceLocation const & resourceLocation,
::std::string & resourceStream ) const
virtualinherited

Implements ResourceLoader.

◆ load() [2/3]

virtual bool ResourcePackLoader::load ( ::ResourceLocation const & resourceLocation,
::std::string & resourceStream,
::gsl::span<::std::string const > extensionList ) const
virtualinherited

Implements ResourceLoader.

◆ load() [3/3]

virtual bool ResourcePackLoader::load ( ::ResourceLocationPair const & resourceLocationPair,
::std::string & resourceStream,
::gsl::span<::std::string const > extensionList ) const
virtualinherited

Reimplemented from ResourceLoaderBase.

◆ getPath() [1/2]

virtual ::Core::PathBuffer<::std::string > ResourcePackLoader::getPath ( ::ResourceLocation const & resourceLocation) const
virtualinherited

Reimplemented from ResourceLoaderBase.

◆ getPath() [2/2]

virtual ::Core::PathBuffer<::std::string > ResourcePackLoader::getPath ( ::ResourceLocation const & resourceLocation,
::gsl::span<::std::string const > extensionList ) const
virtualinherited

Reimplemented from ResourceLoaderBase.

◆ getPathContainingResource()

virtual ::Core::PathBuffer<::std::string > ResourcePackLoader::getPathContainingResource ( ::ResourceLocation const & resourceLocation) const
virtualinherited

Reimplemented from ResourceLoaderBase.

◆ getPackStackIndexOfResource()

virtual ::std::pair< int, ::std::string_view > ResourcePackLoader::getPackStackIndexOfResource ( ::ResourceLocation const & resourceLocation,
::gsl::span<::std::string const > extensionList ) const
virtualinherited

Reimplemented from ResourceLoaderBase.

◆ getPacksWhereAssetExtractionNotViable()

MCAPI ::std::vector<::PackInstance > ResourcePackLoader::getPacksWhereAssetExtractionNotViable ( ::std::function<::std::string(::ContentIdentity const &)> getContentKey,
::std::string const & sourceContext ) 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.

◆ getResourcesOfGroup() [1/2]

MCAPI::ResourceGroup ResourcePackLoader::getResourcesOfGroup ( ::std::string const & group) 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.

◆ getResourcesOfGroup() [2/2]

MCAPI::ResourceGroup ResourcePackLoader::getResourcesOfGroup ( ::PackInstance const & packInstance,
::std::string const & group ) 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.

◆ isAssetExtractionViableForFullStack()

MCAPI bool ResourcePackLoader::isAssetExtractionViableForFullStack ( ::std::function<::std::string(::ContentIdentity const &)> getContentKey,
::std::string const & sourceContext ) 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.

◆ _alwaysPassingPackFilter()

MCAPI bool ResourcePackLoader::_alwaysPassingPackFilter ( ::PackInstance const & )
staticinherited
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.

◆ $load() [1/2]

MCAPI bool ResourcePackLoader::$load ( ::ResourceLocation const & resourceLocation,
::std::string & resourceStream ) 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.

◆ $load() [2/2]

MCAPI bool ResourcePackLoader::$load ( ::ResourceLocation const & resourceLocation,
::std::string & resourceStream,
::gsl::span<::std::string const > extensionList ) 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.

◆ $getPath() [1/2]

MCAPI ::Core::PathBuffer<::std::string > ResourcePackLoader::$getPath ( ::ResourceLocation const & resourceLocation) 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.

◆ $getPath() [2/2]

MCAPI ::Core::PathBuffer<::std::string > ResourcePackLoader::$getPath ( ::ResourceLocation const & resourceLocation,
::gsl::span<::std::string const > extensionList ) 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.

◆ $getPathContainingResource()

MCAPI ::Core::PathBuffer<::std::string > ResourcePackLoader::$getPathContainingResource ( ::ResourceLocation const & resourceLocation) 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.

◆ $hasCapability()

MCAPI bool ResourcePackLoader::$hasCapability ( ::std::string_view requiredCapability) 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.

◆ $ctor() [2/2]

MCAPI void * ResourceLoader::$ctor ( ::std::function<::Core::PathBuffer<::std::string >()> getPath)
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.

◆ $vftable()

MCAPI void ** ResourceLoader::$vftable ( )
staticinherited
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: