Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ResourcePackRepository.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/controllers/PackCategory.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/deps/core/resource/ContentIdentity.h"
9#include "mc/deps/core/resource/PackOrigin.h"
10#include "mc/deps/core/resource/PackType.h"
11#include "mc/deps/core/threading/Async.h"
12#include "mc/deps/core/utility/NonOwnerPointer.h"
13#include "mc/resources/IContentSourceRepository.h"
14#include "mc/resources/IResourcePackRepository.h"
15#include "mc/resources/ResourcePackSelectionPolicy.h"
16#include "mc/resources/repository_loading/IRepositoryLoader.h"
17
18// auto generated forward declare list
19// clang-format off
24class InvalidPacks;
25class PackInstance;
30class RepositoryPacks;
33class ResourcePack;
36class TaskGroup;
37struct InvalidPack;
39struct PackIdVersion;
40struct PackInstanceId;
41namespace Core { class FilePathManager; }
42namespace Core { class Path; }
43namespace PackCommand { class IPackCommandPipeline; }
44namespace RepositoryLoading { struct AllRefreshTaskData; }
45namespace RepositoryLoading { struct BuildTaskDataOptions; }
46namespace RepositoryLoading { struct VanillaPacks; }
47namespace mce { class UUID; }
48// clang-format on
49
50class ResourcePackRepository : public ::IResourcePackRepository, public ::IContentSourceRepository {
51public:
52 // ResourcePackRepository inner types declare
53 // clang-format off
55 // clang-format on
56
57 // ResourcePackRepository inner types define
58 class RepositoryLoaderImpl : public ::RepositoryLoading::IRepositoryLoader {
59 public:
60 // member variables
61 // NOLINTBEGIN
62 ::ll::TypedStorage<8, 8, ::ResourcePackRepository&> mRepository;
63 // NOLINTEND
64
65 public:
66 // prevent constructor by default
67 RepositoryLoaderImpl& operator=(RepositoryLoaderImpl const&);
68 RepositoryLoaderImpl(RepositoryLoaderImpl const&);
69 RepositoryLoaderImpl();
70
71 public:
72 // virtual functions
73 // NOLINTBEGIN
74 virtual ::std::shared_ptr<::RepositoryLoading::AllRefreshTaskData>
75 buildTaskData(::RepositoryLoading::BuildTaskDataOptions const& ops) /*override*/;
76
77 virtual void applyTaskResults(::RepositoryLoading::AllRefreshTaskData&& taskData) /*override*/;
78
79 virtual ::std::shared_ptr<::RepositoryPacks const> getPacks() const /*override*/;
80 // NOLINTEND
81
82 public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCNAPI ::std::shared_ptr<::RepositoryLoading::AllRefreshTaskData>
87
89
90 MCNAPI ::std::shared_ptr<::RepositoryPacks const> $getPacks() const;
91
92
93 // NOLINTEND
94 };
95
96public:
97 // member variables
98 // NOLINTBEGIN
99 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>> mFilePathManager;
100 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::RepositoryPacks>>> mAllResourcePacks;
101 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::InvalidPacks>>> mInvalidPacks;
102 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::IRepositoryFactory>>> mFactory;
103 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::RepositorySources>>> mSources;
104 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackSourceReport>> mPackSourceReport;
105 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::RepositoryLoading::VanillaPacks>>> mVanillaPacks;
106 ::ll::TypedStorage<8, 24, ::std::vector<::PackIdVersion>> mServicePacks;
107 ::ll::TypedStorage<8, 8, ::PackManifestFactory&> mManifestFactory;
108 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentAccessibilityProvider>> mContentAccessibility;
109 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::IMinecraftEventing>> mMinecraftEventing;
110 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mCurrentWorldPath;
111 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mCurrentPremiumWorldTemplatePath;
112 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ContentIdentity, ::std::string>> mTempCacheContentKeys;
113 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackSettingsFactory>> mPackSettingsFactory;
114 ::ll::TypedStorage<8, 8, ::PackSourceFactory&> mPackSourceFactory;
115 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline>> mCommands;
116 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::TaskGroup>>> mTaskGroup;
117 ::ll::TypedStorage<8, 24, ::ContentIdentity> mCurrentPremiumWorldTemplateIdentity;
118 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::ResourcePackRepositoryRefreshQueue>>> mRefresher;
119 // NOLINTEND
120
121public:
122 LLAPI void addCustomResourcePackPath(std::filesystem::path const& path, PackType type);
123
124public:
125 // prevent constructor by default
126 ResourcePackRepository& operator=(ResourcePackRepository const&);
127 ResourcePackRepository(ResourcePackRepository const&);
128 ResourcePackRepository();
129
130public:
131 // virtual functions
132 // NOLINTBEGIN
133#ifdef LL_PLAT_S
134 virtual ~ResourcePackRepository() /*override*/;
135#else // LL_PLAT_C
136 virtual ~ResourcePackRepository() /*override*/ = default;
137#endif
138
139 virtual void getResourcePacksByPackId(
140 ::std::vector<::PackInstanceId> const& packInstanceIds,
141 ::std::vector<::PackInstance>& result
142 ) const /*override*/;
143
144 virtual ::std::shared_ptr<::ResourcePack> getResourcePackForPackId(::PackIdVersion const& idAndVersion) const
145 /*override*/;
146
147 virtual ::ResourcePack* getResourcePackOfDifferentVersionForPackId(::PackIdVersion const& idAndVersion) const
148 /*override*/;
149
150 virtual ::ResourcePack*
151 getResourcePackForPackIdInPath(::PackIdVersion const& idAndVersion, ::Core::Path const& fullPath) const
152 /*override*/;
153
154 virtual ::std::vector<::ResourcePack*> getResourcePacksByUUID(::mce::UUID const& id) const /*override*/;
155
156 virtual ::ResourcePack* getResourcePackForPackIdOwned(::PackIdVersion const& idAndVersion) const /*override*/;
157
158 virtual ::std::shared_ptr<::ResourcePack> getResourcePackSatisfiesPackId(
159 ::PackIdVersion const& idAndVersion,
160 bool requireOwnership,
161 ::ResourcePackSelectionPolicy selectionPolicy
162 ) const /*override*/;
163
164 virtual ::ResourcePack* getResourcePackContainingModule(::PackIdVersion const& idAndVersion) const /*override*/;
165
166 virtual ::Bedrock::Threading::Async<::std::shared_ptr<::ResourcePack>>
167 getResourcePackInPath(::Core::Path const& path) const /*override*/;
168
169 virtual bool isResourcePackLoaded(::PackIdVersion const& identity, ::PackOrigin const& location) /*override*/;
170
171 virtual ::PackSourceReport const* getPackLoadingReport() const /*override*/;
172
173 virtual ::std::shared_ptr<::ResourcePack> getEditorPack() const /*override*/;
174
175 virtual ::std::shared_ptr<::ResourcePack> getVanillaPack() const /*override*/;
176
177 virtual bool setServicePacks(::std::vector<::PackIdVersion> servicePackIds) /*override*/;
178
179 virtual void addServicePacksToStack(::ResourcePackStack& stack) const /*override*/;
180
181 virtual void addSystemPacksToStack(::ResourcePackStack& stack, ::std::optional<::std::string> worldId) const
182 /*override*/;
183
184 virtual void
185 addCachedResourcePacks(::std::unordered_map<::ContentIdentity, ::std::string> const* tempCacheKeys) /*override*/;
186
187 virtual void addWorldResourcePacks(::Core::Path const& levelPath) /*override*/;
188
189 virtual void addPremiumWorldTemplateResourcePacks(
190 ::Core::Path const& worldTemplatePath,
191 ::ContentIdentity const& premiumWorldIdentity
192 ) /*override*/;
193
194 virtual void addTempWorldTemplateResourcePacks(::mce::UUID const& worldTemplateUUID) /*override*/;
195
196 virtual void addWorldPackSource(::Core::Path const& levelPath) /*override*/;
197
198 virtual void addPremiumWorldTemplatePackSource(
199 ::Core::Path const& worldTemplatePath,
200 ::ContentIdentity const& premiumWorldIdentity
201 ) /*override*/;
202
203 virtual void removePacksLoadedFromCache() /*override*/;
204
205 virtual void removePacksLoadedFromWorld() /*override*/;
206
207 virtual ::Core::PathBuffer<::std::string> const getResourcePacksPath() const /*override*/;
208
209 virtual ::Core::PathBuffer<::std::string> const getBehaviorPacksPath() const /*override*/;
210
211 virtual ::Core::PathBuffer<::std::string> const getSkinPacksPath() const /*override*/;
212
213 virtual ::Core::PathBuffer<::std::string> const getCustomSkinDirectoryPath() const /*override*/;
214
215 virtual ::Core::PathBuffer<::std::string> const getDevelopmentResourcePacksPath() const /*override*/;
216
217 virtual ::Core::PathBuffer<::std::string> const getDevelopmentBehaviorPacksPath() const /*override*/;
218
219 virtual ::Core::PathBuffer<::std::string> const getDevelopmentSkinPacksPath() const /*override*/;
220
221 virtual ::Core::PathBuffer<::std::string> const getTreatmentPacksPath() const /*override*/;
222
223 virtual ::Core::PathBuffer<::std::string> const getSystemBehaviorPacksPath() const /*override*/;
224
225 virtual ::Core::PathBuffer<::std::string> const getSystemResourcePacksPath() const /*override*/;
226
227 virtual void refreshPacks() /*override*/;
228
229 virtual ::Bedrock::Threading::Async<void> refreshPacksAsync() /*override*/;
230
231 virtual void requestReloadUserPacks() /*override*/;
232
233 virtual ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> getKeyProvider() const /*override*/;
234
235 virtual ::PackManifestFactory& getPackManifestFactory() /*override*/;
236
237 virtual ::PackSettingsFactory& getPackSettingsFactory() const /*override*/;
238
239 virtual ::PackSourceFactory& getPackSourceFactory() /*override*/;
240
241 virtual ::std::vector<::ResourcePack*> getPacksByResourceLocation(::PackOrigin type) const /*override*/;
242
243 virtual ::std::vector<::ResourcePack*> getPacksByType(::PackType type) const /*override*/;
244
245 virtual ::std::vector<::gsl::not_null<::std::shared_ptr<::ResourcePack>>>
246 getPacksByCategory(::PackCategory category) const /*override*/;
247
248 virtual void forEachPack(::std::function<void(::ResourcePack const&)> const& callback) const /*override*/;
249
250 virtual ::std::vector<::InvalidPack> const& getInvalidPacks() const /*override*/;
251
252 virtual ::std::vector<::InvalidPack> getInvalidPacks(::PackType type) const /*override*/;
253
254 virtual ::std::vector<::InvalidPack> getInvalidPacks(::InvalidPacksFilterGroup const& packTypes) const /*override*/;
255
256 virtual ::std::vector<::InvalidPack> getInvalidPacks(::PackOrigin origin) const /*override*/;
257
258 virtual void
259 deletePacks(::gsl::span<::ResourceLocation const> packLocations, ::std::string_view deletionReason) /*override*/;
260
261 virtual void deletePack(::ResourceLocation const& packLocation, ::std::string_view deletionReason) /*override*/;
262
263 virtual void
264 deletePackFiles(::ResourceLocation const& packLocation, ::std::string_view deletionReason) /*override*/;
265
266 virtual void postDeletePack(::ResourceLocation const& packLocation) /*override*/;
267
268 virtual void untrackInvalidPack(::ResourceLocation const& packLocation) /*override*/;
269
270 virtual bool isInitialized() const /*override*/;
271
272 virtual ::ResourcePackStack createStack(::std::vector<::PackInstanceId> const& identities) /*override*/;
273
274 virtual ::Bedrock::NotNullNonOwnerPtr<::IContentSourceRepository> getContentSourceRepository() /*override*/;
275 // NOLINTEND
276
277public:
278 // member functions
279 // NOLINTBEGIN
280 MCAPI ResourcePackRepository(
281 ::gsl::not_null<::std::shared_ptr<::RepositoryPacks>> repositoryPacks,
282 ::PackManifestFactory& manifestFactory,
283 ::Bedrock::NotNullNonOwnerPtr<::IContentAccessibilityProvider> const& contentAccessibility,
284 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& pathManager,
285 ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline> commands,
286 ::PackSourceFactory& packSourceFactory,
287 ::Bedrock::NonOwnerPointer<::IMinecraftEventing> minecraftEventing,
288 bool initAsync,
289 ::std::unique_ptr<::IRepositoryFactory> factory
290 );
291
292 MCNAPI void _postDeletePacks(::gsl::span<::ResourceLocation const> packLocations);
293 // NOLINTEND
294
295public:
296 // constructor thunks
297 // NOLINTBEGIN
298 MCAPI void* $ctor(
299 ::gsl::not_null<::std::shared_ptr<::RepositoryPacks>> repositoryPacks,
300 ::PackManifestFactory& manifestFactory,
301 ::Bedrock::NotNullNonOwnerPtr<::IContentAccessibilityProvider> const& contentAccessibility,
302 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& pathManager,
303 ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline> commands,
304 ::PackSourceFactory& packSourceFactory,
305 ::Bedrock::NonOwnerPointer<::IMinecraftEventing> minecraftEventing,
306 bool initAsync,
307 ::std::unique_ptr<::IRepositoryFactory> factory
308 );
309 // NOLINTEND
310
311public:
312 // destructor thunk
313 // NOLINTBEGIN
314#ifdef LL_PLAT_S
315 MCAPI void $dtor();
316#endif
317 // NOLINTEND
318
319public:
320 // virtual function thunks
321 // NOLINTBEGIN
323 ::std::vector<::PackInstanceId> const& packInstanceIds,
324 ::std::vector<::PackInstance>& result
325 ) const;
326
327 MCNAPI ::std::shared_ptr<::ResourcePack> $getResourcePackForPackId(::PackIdVersion const& idAndVersion) const;
328
329 MCNAPI ::ResourcePack* $getResourcePackOfDifferentVersionForPackId(::PackIdVersion const& idAndVersion) const;
330
331 MCNAPI ::ResourcePack*
332 $getResourcePackForPackIdInPath(::PackIdVersion const& idAndVersion, ::Core::Path const& fullPath) const;
333
334 MCNAPI ::std::vector<::ResourcePack*> $getResourcePacksByUUID(::mce::UUID const& id) const;
335
336 MCNAPI ::ResourcePack* $getResourcePackForPackIdOwned(::PackIdVersion const& idAndVersion) const;
337
338 MCNAPI ::std::shared_ptr<::ResourcePack> $getResourcePackSatisfiesPackId(
339 ::PackIdVersion const& idAndVersion,
340 bool requireOwnership,
341 ::ResourcePackSelectionPolicy selectionPolicy
342 ) const;
343
344 MCNAPI ::ResourcePack* $getResourcePackContainingModule(::PackIdVersion const& idAndVersion) const;
345
346 MCNAPI ::Bedrock::Threading::Async<::std::shared_ptr<::ResourcePack>>
348
349 MCNAPI bool $isResourcePackLoaded(::PackIdVersion const& identity, ::PackOrigin const& location);
350
351 MCNAPI ::PackSourceReport const* $getPackLoadingReport() const;
352
353 MCNAPI ::std::shared_ptr<::ResourcePack> $getEditorPack() const;
354
355 MCNAPI ::std::shared_ptr<::ResourcePack> $getVanillaPack() const;
356
357 MCNAPI bool $setServicePacks(::std::vector<::PackIdVersion> servicePackIds);
358
360
361 MCNAPI void $addSystemPacksToStack(::ResourcePackStack& stack, ::std::optional<::std::string> worldId) const;
362
363 MCNAPI void $addCachedResourcePacks(::std::unordered_map<::ContentIdentity, ::std::string> const* tempCacheKeys);
364
365 MCNAPI void $addWorldResourcePacks(::Core::Path const& levelPath);
366
368 ::Core::Path const& worldTemplatePath,
369 ::ContentIdentity const& premiumWorldIdentity
370 );
371
372 MCNAPI void $addTempWorldTemplateResourcePacks(::mce::UUID const& worldTemplateUUID);
373
374 MCNAPI void $addWorldPackSource(::Core::Path const& levelPath);
375
377 ::Core::Path const& worldTemplatePath,
378 ::ContentIdentity const& premiumWorldIdentity
379 );
380
382
384
385 MCNAPI ::Core::PathBuffer<::std::string> const $getResourcePacksPath() const;
386
387 MCNAPI ::Core::PathBuffer<::std::string> const $getBehaviorPacksPath() const;
388
389 MCNAPI ::Core::PathBuffer<::std::string> const $getSkinPacksPath() const;
390
391 MCNAPI ::Core::PathBuffer<::std::string> const $getCustomSkinDirectoryPath() const;
392
393 MCNAPI ::Core::PathBuffer<::std::string> const $getDevelopmentResourcePacksPath() const;
394
395 MCNAPI ::Core::PathBuffer<::std::string> const $getDevelopmentBehaviorPacksPath() const;
396
397 MCNAPI ::Core::PathBuffer<::std::string> const $getDevelopmentSkinPacksPath() const;
398
399 MCNAPI ::Core::PathBuffer<::std::string> const $getTreatmentPacksPath() const;
400
401 MCNAPI ::Core::PathBuffer<::std::string> const $getSystemBehaviorPacksPath() const;
402
403 MCNAPI ::Core::PathBuffer<::std::string> const $getSystemResourcePacksPath() const;
404
405 MCNAPI void $refreshPacks();
406
407 MCNAPI ::Bedrock::Threading::Async<void> $refreshPacksAsync();
408
410
411 MCNAPI ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> $getKeyProvider() const;
412
413 MCNAPI ::PackManifestFactory& $getPackManifestFactory();
414
415 MCNAPI ::PackSettingsFactory& $getPackSettingsFactory() const;
416
417 MCNAPI ::PackSourceFactory& $getPackSourceFactory();
418
419 MCNAPI ::std::vector<::ResourcePack*> $getPacksByResourceLocation(::PackOrigin type) const;
420
421 MCNAPI ::std::vector<::ResourcePack*> $getPacksByType(::PackType type) const;
422
423 MCNAPI ::std::vector<::gsl::not_null<::std::shared_ptr<::ResourcePack>>>
424 $getPacksByCategory(::PackCategory category) const;
425
426 MCNAPI void $forEachPack(::std::function<void(::ResourcePack const&)> const& callback) const;
427
428 MCNAPI ::std::vector<::InvalidPack> const& $getInvalidPacks() const;
429
430 MCNAPI ::std::vector<::InvalidPack> $getInvalidPacks(::PackType type) const;
431
432 MCNAPI ::std::vector<::InvalidPack> $getInvalidPacks(::InvalidPacksFilterGroup const& packTypes) const;
433
434 MCNAPI ::std::vector<::InvalidPack> $getInvalidPacks(::PackOrigin origin) const;
435
436 MCNAPI void $deletePacks(::gsl::span<::ResourceLocation const> packLocations, ::std::string_view deletionReason);
437
438 MCNAPI void $deletePack(::ResourceLocation const& packLocation, ::std::string_view deletionReason);
439
440 MCNAPI void $deletePackFiles(::ResourceLocation const& packLocation, ::std::string_view deletionReason);
441
442 MCNAPI void $postDeletePack(::ResourceLocation const& packLocation);
443
444 MCNAPI void $untrackInvalidPack(::ResourceLocation const& packLocation);
445
446 MCNAPI bool $isInitialized() const;
447
448 MCNAPI ::ResourcePackStack $createStack(::std::vector<::PackInstanceId> const& identities);
449
450 MCNAPI ::Bedrock::NotNullNonOwnerPtr<::IContentSourceRepository> $getContentSourceRepository();
451
452
453 // NOLINTEND
454};
Definition ContentIdentity.h:8
Definition FilePathManager.h:18
Definition Path.h:10
Definition IContentAccessibilityProvider.h:13
Definition IContentKeyProvider.h:13
Definition IContentSourceRepository.h:14
Definition IMinecraftEventing.h:152
Definition IRepositoryFactory.h:12
Definition IResourcePackRepository.h:36
Definition InvalidPacks.h:16
Definition IPackCommandPipeline.h:19
Definition PackInstance.h:16
Definition PackManifestFactory.h:21
Definition PackSettingsFactory.h:23
Definition PackSourceFactory.h:33
Definition PackSourceReport.h:11
Definition Path.h:16
Definition IRepositoryLoader.h:14
Definition RepositoryPacks.h:12
Definition RepositorySources.h:12
Definition ResourceLocation.h:15
Definition ResourcePackRepositoryRefreshQueue.h:15
Definition ResourcePackRepository.h:58
MCAPI ::std::shared_ptr<::RepositoryPacks const > $getPacks() const
MCAPI void $applyTaskResults(::RepositoryLoading::AllRefreshTaskData &&taskData)
MCAPI ::std::shared_ptr<::RepositoryLoading::AllRefreshTaskData > $buildTaskData(::RepositoryLoading::BuildTaskDataOptions const &ops)
MCAPI void $removePacksLoadedFromCache()
MCAPI::ResourcePack * $getResourcePackForPackIdInPath(::PackIdVersion const &idAndVersion, ::Core::Path const &fullPath) const
MCAPI void _postDeletePacks(::gsl::span<::ResourceLocation const > packLocations)
MCAPI::ResourcePackStack $createStack(::std::vector<::PackInstanceId > const &identities)
MCAPI ::std::shared_ptr<::ResourcePack > $getResourcePackSatisfiesPackId(::PackIdVersion const &idAndVersion, bool requireOwnership, ::ResourcePackSelectionPolicy selectionPolicy) const
MCAPI ::std::vector<::ResourcePack * > $getResourcePacksByUUID(::mce::UUID const &id) const
MCAPI void $deletePack(::ResourceLocation const &packLocation, ::std::string_view deletionReason)
MCAPI void $untrackInvalidPack(::ResourceLocation const &packLocation)
MCAPI void $addPremiumWorldTemplatePackSource(::Core::Path const &worldTemplatePath, ::ContentIdentity const &premiumWorldIdentity)
MCAPI void $getResourcePacksByPackId(::std::vector<::PackInstanceId > const &packInstanceIds, ::std::vector<::PackInstance > &result) const
MCAPI ::Core::PathBuffer<::std::string > const $getResourcePacksPath() const
MCAPI void $postDeletePack(::ResourceLocation const &packLocation)
MCAPI::ResourcePack * $getResourcePackContainingModule(::PackIdVersion const &idAndVersion) const
MCAPI::PackSourceReport const * $getPackLoadingReport() const
MCAPI ::std::shared_ptr<::ResourcePack > $getResourcePackForPackId(::PackIdVersion const &idAndVersion) const
MCAPI ::Core::PathBuffer<::std::string > const $getTreatmentPacksPath() const
MCAPI::PackSettingsFactory & $getPackSettingsFactory() const
MCAPI ::Core::PathBuffer<::std::string > const $getDevelopmentSkinPacksPath() const
MCAPI void $deletePacks(::gsl::span<::ResourceLocation const > packLocations, ::std::string_view deletionReason)
MCAPI ::Bedrock::Threading::Async< void > $refreshPacksAsync()
MCAPI ::Core::PathBuffer<::std::string > const $getSystemResourcePacksPath() const
MCAPI ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > $getKeyProvider() const
MCAPI bool $setServicePacks(::std::vector<::PackIdVersion > servicePackIds)
MCAPI::PackManifestFactory & $getPackManifestFactory()
MCAPI void $addCachedResourcePacks(::std::unordered_map<::ContentIdentity, ::std::string > const *tempCacheKeys)
MCAPI void $addPremiumWorldTemplateResourcePacks(::Core::Path const &worldTemplatePath, ::ContentIdentity const &premiumWorldIdentity)
MCAPI void $addSystemPacksToStack(::ResourcePackStack &stack, ::std::optional<::std::string > worldId) const
MCAPI ::std::vector<::ResourcePack * > $getPacksByType(::PackType type) const
MCAPI ::Core::PathBuffer<::std::string > const $getBehaviorPacksPath() const
MCAPI ::Core::PathBuffer<::std::string > const $getDevelopmentResourcePacksPath() const
MCAPI ::std::shared_ptr<::ResourcePack > $getVanillaPack() const
MCAPI void $addTempWorldTemplateResourcePacks(::mce::UUID const &worldTemplateUUID)
MCAPI ::Core::PathBuffer<::std::string > const $getDevelopmentBehaviorPacksPath() const
MCAPI::PackSourceFactory & $getPackSourceFactory()
MCAPI void $deletePackFiles(::ResourceLocation const &packLocation, ::std::string_view deletionReason)
MCAPI ::Core::PathBuffer<::std::string > const $getSkinPacksPath() const
MCAPI ::std::vector<::InvalidPack > $getInvalidPacks(::PackType type) const
MCAPI ::std::vector<::InvalidPack > $getInvalidPacks(::InvalidPacksFilterGroup const &packTypes) const
MCAPI bool $isInitialized() const
MCAPI void $addServicePacksToStack(::ResourcePackStack &stack) const
MCAPI void $addWorldResourcePacks(::Core::Path const &levelPath)
MCAPI ::Bedrock::Threading::Async<::std::shared_ptr<::ResourcePack > > $getResourcePackInPath(::Core::Path const &path) const
MCAPI ::Bedrock::NotNullNonOwnerPtr<::IContentSourceRepository > $getContentSourceRepository()
MCAPI::ResourcePack * $getResourcePackOfDifferentVersionForPackId(::PackIdVersion const &idAndVersion) const
MCAPI ::std::vector<::gsl::not_null<::std::shared_ptr<::ResourcePack > > > $getPacksByCategory(::PackCategory category) const
MCAPI ::std::vector<::InvalidPack > const & $getInvalidPacks() const
MCAPI ::std::shared_ptr<::ResourcePack > $getEditorPack() const
MCAPI ::std::vector<::ResourcePack * > $getPacksByResourceLocation(::PackOrigin type) const
MCAPI::ResourcePack * $getResourcePackForPackIdOwned(::PackIdVersion const &idAndVersion) const
MCAPI bool $isResourcePackLoaded(::PackIdVersion const &identity, ::PackOrigin const &location)
MCAPI ::Core::PathBuffer<::std::string > const $getSystemBehaviorPacksPath() const
MCAPI void $forEachPack(::std::function< void(::ResourcePack const &)> const &callback) const
MCAPI ::std::vector<::InvalidPack > $getInvalidPacks(::PackOrigin origin) const
MCAPI void $addWorldPackSource(::Core::Path const &levelPath)
MCAPI ::Core::PathBuffer<::std::string > const $getCustomSkinDirectoryPath() const
MCAPI void $requestReloadUserPacks()
MCAPI void $refreshPacks()
MCAPI void $removePacksLoadedFromWorld()
Definition ResourcePackStack.h:23
Definition ResourcePack.h:25
Definition TaskGroup.h:85
Definition UUID.h:8
STL namespace.
Definition InvalidPack.h:5
Definition InvalidPacksFilterGroup.h:5
Definition PackIdVersion.h:10
Definition PackInstanceId.h:8
Definition AllRefreshTaskData.h:7
Definition BuildTaskDataOptions.h:7
Definition VanillaPacks.h:7