3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/resource/ResourceLoader.h"
8#include "mc/deps/core/resource/ResourcePackStackType.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
21namespace Core {
class Path; }
58 virtual bool load(
::ResourceLocation const& resourceLocation, ::std::string& resourceStream)
const ;
63 ::std::string& resourceStream,
64 ::gsl::span<::std::string const> extensionList
70 ::std::string& resourceStream,
71 ::gsl::span<::std::string const> extensions
75 virtual bool loadText(
::ResourceLocation const& resourceLocation, ::std::string& resourceStream)
const ;
78 virtual ::std::vector<::LoadedResourceData> loadAllVersionsOf(
::ResourceLocation const& resourceLocation)
const
82 virtual bool isInStreamableLocation(
::ResourceLocation const& resourceLocation)
const ;
85 virtual bool isInStreamableLocation(
87 ::gsl::span<::std::string const> extensions
91 virtual ::Core::PathBuffer<::std::string> getPath(
::ResourceLocation const& resourceLocation)
const ;
94 virtual ::Core::PathBuffer<::std::string>
95 getPath(
::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensions)
const ;
98 virtual ::Core::PathBuffer<::std::string>
102 virtual ::Core::PathBuffer<::std::string> getPathContainingResource(
104 ::gsl::span<::std::string const> extensions
108 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
110 ::gsl::span<::std::string const> extensions
114 virtual bool hasCapability(::std::string_view requiredCapability)
const;
122 ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const>
const& contentTierManager,
123 bool needsToInitialize
132 ::std::string
const& group,
133 ::std::vector<::Core::Path>& resources
149 MCNAPI ::ResourcePackStack
const&
getStack(::ResourcePackStackType stackType)
const;
158 setStack(::std::unique_ptr<::ResourcePackStack> stack, ::ResourcePackStackType stackType,
bool composeStack);
166 ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const>
const& contentTierManager,
167 bool needsToInitialize
184 ::std::string& resourceStream,
185 ::gsl::span<::std::string const> extensionList
190 ::std::string& resourceStream,
191 ::gsl::span<::std::string const> extensions
202 ::gsl::span<::std::string const> extensions
207 MCNAPI ::Core::PathBuffer<::std::string>
210 MCNAPI ::Core::PathBuffer<::std::string>
215 ::gsl::span<::std::string const> extensions
220 ::gsl::span<::std::string const> extensions
Definition PathBuffer.h:8
Definition IContentTierManager.h:13
Definition LoadedResourceData.h:5
Definition PackInstance.h:23
Definition PackSourceReport.h:5
Definition ResourceGroup.h:8
Definition ResourceLoader.h:16
Definition ResourceLocationPair.h:5
Definition ResourceLocation.h:14
Definition ResourcePackManager.h:24
MCAPI ::std::vector<::LoadedResourceData > $loadAllVersionsOf(::ResourceLocation const &resourceLocation) const
MCAPI::ResourceGroup getResourcesOfGroup(::std::string const &group) const
MCAPI void setPackSourceReport(::PackSourceReport &&report)
MCAPI void _composeFullStack()
MCAPI bool $load(::ResourceLocationPair const &resourceLocation, ::std::string &resourceStream, ::gsl::span<::std::string const > extensions) const
MCAPI bool $loadText(::ResourceLocation const &resourceLocation, ::std::string &resourceStream) const
MCAPI int composeFullStack(::ResourcePackStack &output, ::ResourcePackStack const &globalStack, ::ResourcePackStack const &levelStack, ::ResourcePackStack const &addonStack) const
MCAPI void iteratePacks(::std::function< void(::PackInstance const &)> const &pred) const
MCAPI ResourcePackManager(::std::function<::Core::PathBuffer<::std::string >()> getPath, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const > const &contentTierManager, bool needsToInitialize)
MCAPI void _calculateMinEngineVersionFromFullStack()
MCAPI ::Core::PathBuffer<::std::string > $getPathContainingResource(::ResourceLocation const &resourceLocation) const
MCAPI bool $isInStreamableLocation(::ResourceLocation const &resourceLocation) const
MCAPI bool $load(::ResourceLocation const &resourceLocation, ::std::string &resourceStream, ::gsl::span<::std::string const > extensionList) const
MCAPI::ResourceGroup getResourcesOfGroup(::PackInstance const &packInstance, ::std::string const &group) const
MCAPI void removeIf(::std::function< bool(::PackInstance const &)> const &pred)
static MCAPI void ** $vftable()
MCAPI bool $hasCapability(::std::string_view requiredCapability) const
MCAPI ::Core::PathBuffer<::std::string > $getPathContainingResource(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
MCAPI void _updateLanguageSubpacks()
MCAPI void * $ctor(::std::function<::Core::PathBuffer<::std::string >()> getPath, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const > const &contentTierManager, bool needsToInitialize)
MCAPI ::std::pair< int, ::std::string_view > $getPackStackIndexOfResource(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
MCAPI::ResourcePackStack const & getStack(::ResourcePackStackType stackType) 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 > extensions) const
MCAPI bool setStack(::std::unique_ptr<::ResourcePackStack > stack, ::ResourcePackStackType stackType, bool composeStack)
MCAPI bool $load(::ResourceLocation const &resourceLocation, ::std::string &resourceStream) const
MCAPI void _getResourcesOfGroup(::PackInstance const &packInstance, ::std::string const &group, ::std::vector<::Core::Path > &resources) const
MCAPI bool $isInStreamableLocation(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
Definition ResourcePackStack.h:21