59 ::ll::TypedStorage<8, 8, ::ResourcePackRepository&> mRepository;
72 virtual ::std::shared_ptr<::RepositoryLoading::AllRefreshTaskData>
79 virtual ::std::shared_ptr<::RepositoryPacks const> getPacks()
const ;
88 MCNAPI ::std::shared_ptr<::RepositoryLoading::AllRefreshTaskData>
93 MCNAPI ::std::shared_ptr<::RepositoryPacks const>
$getPacks()
const;
106 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>> mFilePathManager;
107 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::RepositoryPacks>>> mAllResourcePacks;
108 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::InvalidPacks>>> mInvalidPacks;
109 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::IRepositoryFactory>>> mFactory;
110 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::RepositorySources>>> mSources;
111 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackSourceReport>> mPackSourceReport;
112 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::RepositoryLoading::VanillaPacks>>> mVanillaPacks;
113 ::ll::TypedStorage<8, 24, ::std::vector<::PackIdVersion>> mServicePacks;
114 ::ll::TypedStorage<8, 8, ::PackManifestFactory&> mManifestFactory;
115 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentAccessibilityProvider>> mContentAccessibility;
116 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mCurrentWorldPath;
117 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mCurrentPremiumWorldTemplatePath;
118 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ContentIdentity, ::std::string>> mTempCacheContentKeys;
119 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackSettingsFactory>> mPackSettingsFactory;
120 ::ll::TypedStorage<8, 8, ::PackSourceFactory&> mPackSourceFactory;
121 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline>> mCommands;
122 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::TaskGroup>>> mTaskGroup;
123 ::ll::TypedStorage<8, 24, ::ContentIdentity> mCurrentPremiumWorldTemplateIdentity;
124 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::ResourcePackRepositoryRefreshQueue>>> mRefresher;
128 LLAPI
void addCustomResourcePackPath(std::filesystem::path
const& path, PackType type);
143 virtual void getResourcePacksByPackId(
144 ::std::vector<::PackInstanceId>
const& packInstanceIds,
145 ::std::vector<::PackInstance>& result
149 virtual ::std::shared_ptr<::ResourcePack> getResourcePackForPackId(
::PackIdVersion const& idAndVersion)
const
153 virtual ::ResourcePack* getResourcePackOfDifferentVersionForPackId(
::PackIdVersion const& idAndVersion)
const
157 virtual ::ResourcePack*
162 virtual ::ResourcePack* getResourcePackByUUID(
::mce::UUID const&
id)
const ;
165 virtual ::ResourcePack* getResourcePackForPackIdOwned(
::PackIdVersion const& idAndVersion)
const ;
168 virtual ::std::shared_ptr<::ResourcePack>
169 getResourcePackSatisfiesPackId(
::PackIdVersion const& idAndVersion,
bool requireOwnership)
const ;
172 virtual ::ResourcePack* getResourcePackContainingModule(
::PackIdVersion const& idAndVersion)
const ;
175 virtual ::Bedrock::Threading::Async<::std::shared_ptr<::ResourcePack>>
179 virtual bool isResourcePackLoaded(
::PackIdVersion const& identity, ::PackOrigin
const& location) ;
182 virtual ::PackSourceReport
const* getPackLoadingReport() const ;
191 virtual
bool setServicePacks(::
std::vector<::
PackIdVersion> servicePackIds) ;
194 virtual
bool hasServicePacks(::
std::vector<::
PackIdVersion> const& servicePacksIds) const ;
204 addCachedResourcePacks(::
std::unordered_map<::
ContentIdentity, ::
std::
string> const* tempCacheKeys) ;
207 virtual
void addWorldResourcePacks(::Core::
Path const& levelPath) ;
210 virtual
void addPremiumWorldTemplateResourcePacks(
211 ::Core::
Path const& worldTemplatePath,
216 virtual
void addTempWorldTemplateResourcePacks(::mce::UUID const& worldTemplateUUID) ;
219 virtual
void addWorldPackSource(::Core::
Path const& levelPath) ;
222 virtual
void addPremiumWorldTemplatePackSource(
223 ::Core::
Path const& worldTemplatePath,
228 virtual
void removePacksLoadedFromCache() ;
231 virtual
void removePacksLoadedFromWorld() ;
234 virtual ::Core::PathBuffer<::
std::
string> const getResourcePacksPath() const ;
237 virtual ::Core::PathBuffer<::
std::
string> const getBehaviorPacksPath() const ;
240 virtual ::Core::PathBuffer<::
std::
string> const getSkinPacksPath() const ;
243 virtual ::Core::PathBuffer<::
std::
string> const getDevelopmentResourcePacksPath() const ;
246 virtual ::Core::PathBuffer<::
std::
string> const getDevelopmentBehaviorPacksPath() const ;
249 virtual ::Core::PathBuffer<::
std::
string> const getDevelopmentSkinPacksPath() const ;
252 virtual ::Core::PathBuffer<::
std::
string> const getTreatmentPacksPath() const ;
255 virtual
void refreshPacks() ;
258 virtual ::Bedrock::Threading::Async<
void> refreshPacksAsync() ;
261 virtual
void requestReloadUserPacks() ;
264 virtual ::Bedrock::NotNullNonOwnerPtr<::
IContentKeyProvider const> getKeyProvider() const ;
276 virtual ::
std::vector<::
ResourcePack*> getPacksByResourceLocation(::PackOrigin type) const ;
279 virtual ::
std::vector<::
ResourcePack*> getPacksByType(::PackType type) const ;
283 getPacksByCategory(::PackCategory category) const ;
286 virtual
void forEachPack(::
std::function<
void(::
ResourcePack const&)> const& callback) const ;
308 virtual
bool isInitialized() const ;
324 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& pathManager,
325 ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline> commands,
339 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& pathManager,
340 ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline> commands,
356 MCAPI
void $getResourcePacksByPackId(
366 $getResourcePackForPackIdInPath(::
PackIdVersion const& idAndVersion, ::Core::
Path const& fullPath) const;
368 MCAPI ::
ResourcePack* $getResourcePackByUUID(::mce::UUID const&
id) const;
373 $getResourcePackSatisfiesPackId(::
PackIdVersion const& idAndVersion,
bool requireOwnership) const;
378 $getResourcePackInPath(::Core::
Path const& path) const;
380 MCAPI
bool $isResourcePackLoaded(::
PackIdVersion const& identity, ::PackOrigin const& location);
390 MCAPI
bool $hasServicePacks(::
std::vector<::
PackIdVersion> const& servicePacksIds) const;
396 MCAPI
void $addCachedResourcePacks(::
std::unordered_map<::
ContentIdentity, ::
std::
string> const* tempCacheKeys);
398 MCAPI
void $addWorldResourcePacks(::Core::
Path const& levelPath);
400 MCAPI
void $addPremiumWorldTemplateResourcePacks(
401 ::Core::
Path const& worldTemplatePath,
405 MCAPI
void $addTempWorldTemplateResourcePacks(::mce::UUID const& worldTemplateUUID);
407 MCAPI
void $addWorldPackSource(::Core::
Path const& levelPath);
409 MCAPI
void $addPremiumWorldTemplatePackSource(
410 ::Core::
Path const& worldTemplatePath,
414 MCAPI
void $removePacksLoadedFromCache();
416 MCAPI
void $removePacksLoadedFromWorld();
418 MCAPI ::Core::PathBuffer<::
std::
string> const $getResourcePacksPath() const;
420 MCAPI ::Core::PathBuffer<::
std::
string> const $getBehaviorPacksPath() const;
422 MCAPI ::Core::PathBuffer<::
std::
string> const $getSkinPacksPath() const;
424 MCAPI ::Core::PathBuffer<::
std::
string> const $getDevelopmentResourcePacksPath() const;
426 MCAPI ::Core::PathBuffer<::
std::
string> const $getDevelopmentBehaviorPacksPath() const;
428 MCAPI ::Core::PathBuffer<::
std::
string> const $getDevelopmentSkinPacksPath() const;
430 MCAPI ::Core::PathBuffer<::
std::
string> const $getTreatmentPacksPath() const;
432 MCAPI
void $refreshPacks();
434 MCAPI ::Bedrock::Threading::Async<
void> $refreshPacksAsync();
436 MCAPI
void $requestReloadUserPacks();
446 MCAPI ::
std::vector<::
ResourcePack*> $getPacksByResourceLocation(::PackOrigin type) const;
448 MCAPI ::
std::vector<::
ResourcePack*> $getPacksByType(::PackType type) const;
451 $getPacksByCategory(::PackCategory category) const;
453 MCAPI
void $forEachPack(::
std::function<
void(::
ResourcePack const&)> const& callback) const;
467 MCAPI
bool $isInitialized() const;