Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ResourcePack Class Reference

Classes

struct  Impl

Public Types

using Callback = ::std::function<void(::Core::Path const&)>

Public Member Functions

MCAPI ResourcePack (::I18n &loc, ::gsl::not_null<::std::shared_ptr<::Pack > > pack)
MCAPI void _createSubpack (::I18n &loc, ::SubpackInfo const &subpackInfo)
MCAPI void _createSubpacks (::I18n &loc)
MCAPI bool areKnownFilesValid ()
MCAPI void forEachIn (::Core::Path const &filePath, ::std::function< void(::Core::Path const &)> callback, int subpackIndex, bool recurseAnyways) const
MCAPI void forEachInAssetSet (::Core::Path const &filePath, ::std::function< void(::Core::Path const &)> callback, int subpackIndex) const
MCAPI void generateAssetSet ()
MCAPI bool getResource (::Core::PathView const &resourceName, ::std::string &resourceStream, int subpackIndex) const
MCAPI bool hasResource (::Core::PathView const &resourceName, int subpackIndex) const
MCAPI bool isAssetExtractionViable () const
MCAPI::Bedrock::Resources::PreloadedPathHandle preloadArchive (::Core::Path const &packRelativePath, int subpackIndex) const
MCAPI ::std::vector<::Bedrock::Resources::PreloadedPathHandle > preloadPath (::Core::Path const &packRelativePath, int subpackIndex, bool) const
MCAPI void setLocale (::std::string const &code)
MCAPI void * $ctor (::I18n &loc, ::gsl::not_null<::std::shared_ptr<::Pack > > pack)

Static Public Member Functions

static MCAPI ::Core::PathBuffer<::std::string > const & RESOURCE_PACK_BUG_ICON_PATH ()
static MCAPI ::Core::PathBuffer<::std::string > const & RESOURCE_PACK_ICON_PATH ()

Public Attributes

::ll::TypedStorage< 8, 8, ::gsl::not_null<::std::unique_ptr<::ResourcePack::Impl > > > mImpl

Member Function Documentation

◆ _createSubpack()

MCAPI void ResourcePack::_createSubpack ( ::I18n & loc,
::SubpackInfo const & subpackInfo )
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.

◆ _createSubpacks()

MCAPI void ResourcePack::_createSubpacks ( ::I18n & loc)
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.

◆ areKnownFilesValid()

MCAPI bool ResourcePack::areKnownFilesValid ( )
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.

◆ forEachInAssetSet()

MCAPI void ResourcePack::forEachInAssetSet ( ::Core::Path const & filePath,
::std::function< void(::Core::Path const &)> callback,
int subpackIndex ) 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.

◆ generateAssetSet()

MCAPI void ResourcePack::generateAssetSet ( )
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.

◆ isAssetExtractionViable()

MCAPI bool ResourcePack::isAssetExtractionViable ( ) 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.

◆ preloadArchive()

MCAPI::Bedrock::Resources::PreloadedPathHandle ResourcePack::preloadArchive ( ::Core::Path const & packRelativePath,
int subpackIndex ) 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.

◆ preloadPath()

MCAPI ::std::vector<::Bedrock::Resources::PreloadedPathHandle > ResourcePack::preloadPath ( ::Core::Path const & packRelativePath,
int subpackIndex,
bool  ) 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.

◆ setLocale()

MCAPI void ResourcePack::setLocale ( ::std::string const & code)
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.

◆ RESOURCE_PACK_BUG_ICON_PATH()

MCAPI ::Core::PathBuffer<::std::string > const & ResourcePack::RESOURCE_PACK_BUG_ICON_PATH ( )
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.

◆ RESOURCE_PACK_ICON_PATH()

MCAPI ::Core::PathBuffer<::std::string > const & ResourcePack::RESOURCE_PACK_ICON_PATH ( )
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: