53 ::ll::TypedStorage<8, 136, ::std::optional<::ResourceMergeOptions>> mergeOptions;
54 ::ll::TypedStorage<2, 4, ::std::optional<::Bedrock::Resources::ResourceCategory>> loadAsCategory;
62 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackStack>> stack;
63 ::ll::TypedStorage<8, 64, ::std::function<::Core::PathBuffer<::std::string>()>> getPath;
69 ::ll::TypedStorage<8, 64, ::Bedrock::Resources::CategoryFileMapping> categoryFileMapping;
92 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackStack>> mFullStack;
93 ::ll::TypedStorage<8, 16, ::WeakRef<::ResourcePackLoader>> mWeakThis;
94 ::ll::TypedStorage<8, 64, ::Bedrock::Resources::CategoryFileMapping> mCategoryFileMapping;
99 mMergeStrategyFactory;
106 ResourcePackLoader();
112 virtual ~ResourcePackLoader() =
default;
114 virtual bool load(
::ResourceLocation const& resourceLocation, ::std::string& resourceStream)
const ;
118 ::std::string& resourceStream,
119 ::gsl::span<::std::string const> extensionList
124 ::std::string& resourceStream,
125 ::gsl::span<::std::string const> extensionList
132 virtual ::Core::PathBuffer<::std::string> getPath(
::ResourceLocation const& resourceLocation)
const ;
134 virtual ::Core::PathBuffer<::std::string>
135 getPath(
::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensionList)
const
138 virtual ::Core::PathBuffer<::std::string>
141 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
143 ::gsl::span<::std::string const> extensionList
146 virtual bool hasCapability(::std::string_view requiredCapability)
const;
155 MCNAPI ::std::optional<::Bedrock::Resources::CategoryMergeStrategy<::LoadedResourceData>> _loadIntoStrategy(
160 MCNAPI ::std::vector<::ResourceLocationPair> findAllTexturesInUse()
const;
162 MCNAPI ::std::vector<::PackIdVersion> findInPacks(
::ResourceLocation const& resourceLocation)
const;
167 ::std::string
const& sourceContext
175 MCNAPI ::std::optional<::StreamableAssetSource> getStreamableSource(
177 ::gsl::span<::std::string const> extensionList,
178 ::std::optional<::Core::PathView> tempDirectory
184 ::std::string
const& sourceContext
190 ::std::string& resourceStream,
191 ::std::optional<::mce::UUID> packId
194 MCNAPI
bool loadAllVersionsOf(
200 MCNAPI ::std::vector<::Bedrock::Resources::PreloadedPathHandle>
201 preloadPath(
::Core::Path const& packRelativePath)
const;
211 MCNAPI
static bool _hasResource(
214 ::gsl::span<::std::string const> extensionList
236 ::std::string& resourceStream,
237 ::gsl::span<::std::string const> extensionList
242 ::std::string& resourceStream,
243 ::gsl::span<::std::string const> extensionList
248 MCNAPI ::Core::PathBuffer<::std::string>
251 MCNAPI ::Core::PathBuffer<::std::string>
254 MCAPI ::std::pair<int, ::std::string_view> $getPackStackIndexOfResource(
256 ::gsl::span<::std::string const> extensionList
Definition ContentIdentity.h:8