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

Classes

struct  ConstructorKey
struct  LoadAllVersionsOptions
struct  ResourcePackLoaderArgs

Public Types

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

Public Member Functions

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 bool _alwaysPassingPackFilter (::PackInstance const &)
static MCAPI void ** $vftable ()

Public Attributes

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

Member Function Documentation

◆ load() [1/3]

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

Implements ResourceLoader.

◆ load() [2/3]

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

Implements ResourceLoader.

◆ load() [3/3]

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

Reimplemented from ResourceLoaderBase.

◆ getPath() [1/2]

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

Reimplemented from ResourceLoaderBase.

◆ getPath() [2/2]

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

Reimplemented from ResourceLoaderBase.

◆ getPathContainingResource()

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

Reimplemented from ResourceLoaderBase.

◆ getPackStackIndexOfResource()

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

Reimplemented from ResourceLoaderBase.

◆ getPacksWhereAssetExtractionNotViable()

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

◆ getResourcesOfGroup() [1/2]

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

◆ getResourcesOfGroup() [2/2]

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

◆ isAssetExtractionViableForFullStack()

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

◆ _alwaysPassingPackFilter()

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

◆ $load() [1/2]

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

◆ $load() [2/2]

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

◆ $getPath() [1/2]

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

◆ $getPath() [2/2]

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

◆ $getPathContainingResource()

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

◆ $hasCapability()

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

◆ $ctor()

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: