55 ::ll::TypedStorage<1, 1, bool> mDiscoveredOnDisk;
56 ::ll::TypedStorage<8, 56, ::ResourceLocation> mResourceLocation;
57 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mPastHashes;
58 ::ll::TypedStorage<8, 48, ::PackIdVersion> mIdentity;
67 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>> mFilePathManager;
68 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ResourcePack>>> mAllResourcePacks;
69 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mPackSource;
70 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mCachePackSource;
71 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mWorldPackSource;
72 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mPremiumWorldTemplatePackSource;
73 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mTempWorldTemplatePackSource;
74 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackSourceReport>> mPackSourceReport;
75 ::ll::TypedStorage<8, 8, ::ResourcePack*> mEditorPack;
76 ::ll::TypedStorage<8, 8, ::ResourcePack*> mVanillaPack;
77 ::ll::TypedStorage<8, 24, ::std::vector<::PackIdVersion>> mServicePacks;
78 ::ll::TypedStorage<8, 24, ::std::vector<::ResourceLocation>> mInvalidPackLocation;
79 ::ll::TypedStorage<8, 24, ::std::vector<::ResourceLocation>> mInvalidBehaviorPackLocation;
80 ::ll::TypedStorage<8, 24, ::std::vector<::ResourceLocation>> mInvalidResourcePackLocation;
81 ::ll::TypedStorage<8, 24, ::std::vector<::ResourceLocation>> mInvalidTemplatePackLocation;
82 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
83 ::ll::TypedStorage<8, 8, ::PackManifestFactory&> mManifestFactory;
84 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentAccessibilityProvider>> mContentAccessibility;
85 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mCurrentWorldPath;
86 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mCurrentPremiumWorldTemplatePath;
87 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ContentIdentity, ::std::string>> mTempCacheContentKeys;
88 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackSettingsFactory>> mPackSettingsFactory;
89 ::ll::TypedStorage<8, 8, ::PackSourceFactory&> mPackSourceFactory;
90 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline>> mCommands;
91 ::ll::TypedStorage<8, 16, ::std::map<
void*, ::std::function<void(
::ResourcePack*)>>> mRemoveResourcePackCallback;
92 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mInitTaskGroup;
93 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mInitializeMutex;
94 ::ll::TypedStorage<1, 1, bool> mCancelInitialization;
95 ::ll::TypedStorage<1, 1, bool> mInitialized;
96 ::ll::TypedStorage<1, 1, bool> mReloadUserPacksRequested;
97 ::ll::TypedStorage<1, 1, bool> mRefreshPacksRequested;
98 ::ll::TypedStorage<8, 24, ::ContentIdentity> mCurrentPremiumWorldTemplateIdentity;
102 LLAPI
void addCustomResourcePackPath(std::filesystem::path
const& path, PackType type);
117 virtual void getResourcePacksByPackId(
118 ::std::vector<::PackInstanceId>
const& packInstanceIds,
119 ::std::vector<::PackInstance>& result
123 virtual ::ResourcePack* getResourcePackForPackId(
::PackIdVersion const& idAndVersion)
const ;
126 virtual ::ResourcePack*
131 virtual ::ResourcePack* getResourcePackByUUID(
::mce::UUID const&
id)
const ;
134 virtual ::ResourcePack* getResourcePackForPackIdOwned(
::PackIdVersion const& idAndVersion)
const ;
137 virtual ::ResourcePack*
138 getResourcePackSatisfiesPackId(
::PackIdVersion const& idAndVersion,
bool requireOwnership)
const ;
141 virtual ::ResourcePack* getResourcePackContainingModule(
::PackIdVersion const& idAndVersion)
const ;
144 virtual ::ResourcePack* getResourcePackInPath(
::Core::Path const& path)
const ;
147 virtual bool isResourcePackLoaded(
::PackIdVersion const& identity, ::PackOrigin
const& location) ;
150 virtual ::PackSourceReport
const* getPackLoadingReport() const ;
159 virtual
bool setServicePacks(::
std::vector<::
PackIdVersion> servicePackIds) ;
162 virtual
bool hasServicePacks(::
std::vector<::
PackIdVersion> const& servicePacksIds) const ;
172 addCachedResourcePacks(::
std::unordered_map<::
ContentIdentity, ::
std::
string> const* tempCacheKeys) ;
175 virtual
void addWorldResourcePacks(::Core::
Path const& levelPath) ;
178 virtual
void addPremiumWorldTemplateResourcePacks(
179 ::Core::
Path const& worldTemplatePath,
184 virtual
void addTempWorldTemplateResourcePacks(::mce::UUID const& worldTemplateUUID) ;
187 virtual
void removePacksLoadedFromCache() ;
190 virtual
void removePacksLoadedFromWorld() ;
193 virtual ::Core::PathBuffer<::
std::
string> const getResourcePacksPath() const ;
196 virtual ::Core::PathBuffer<::
std::
string> const getBehaviorPacksPath() const ;
199 virtual ::Core::PathBuffer<::
std::
string> const getSkinPacksPath() const ;
202 virtual ::Core::PathBuffer<::
std::
string> const getDevelopmentResourcePacksPath() const ;
205 virtual ::Core::PathBuffer<::
std::
string> const getDevelopmentBehaviorPacksPath() const ;
208 virtual ::Core::PathBuffer<::
std::
string> const getDevelopmentSkinPacksPath() const ;
211 virtual ::Core::PathBuffer<::
std::
string> const getTreatmentPacksPath() const ;
214 virtual
void refreshPacks() ;
217 virtual
void requestReloadUserPacks() ;
220 virtual ::Bedrock::NotNullNonOwnerPtr<::
IContentKeyProvider const> getKeyProvider() const ;
235 virtual ::
std::vector<::
ResourcePack*> getPacksByResourceLocation(::PackOrigin type) const ;
238 virtual ::
std::vector<::
ResourcePack*> getPacksByType(::PackType type) const ;
241 virtual ::
std::vector<::
ResourcePack*> getPacksByCategory(::PackCategory category) const ;
244 virtual
void addInvalidPack(::
ResourceLocation const& packLocation, ::PackType type) ;
267 registerResourcePackRemovedCallback(
void* ptr, ::
std::function<
void(::
ResourcePack*)> callback) ;
270 virtual
void unregisterResourcePackRemovedCallback(
void* ptr) ;
273 virtual
bool isInitialized() ;
283 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& pathManager,
284 ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline> commands,
289 MCAPI
bool _addResourcePackIfNotAlreadyAdded(::
Pack& pack);
291 MCAPI
void _findVanillaPacks();
293 MCAPI
void _initialize();
295 MCAPI
void _initializeCachedPackSource();
297 MCAPI
void _initializePackSource();
299 MCAPI
void _initializeWorldPackSource();
301 MCAPI
void _loadPacks();
303 MCAPI
bool _packExists(::mce::UUID const& packId, ::
SemVersion const& version, ::PackOrigin origin) const;
305 MCAPI
void _reloadUserPacks();
307 MCAPI
bool _removePack(::
ResourceLocation const& packLocation,
bool unregisterDeleteCallback);
309 MCAPI
void _triggerRemoveResourcePackCallback(::
ResourcePack* resourcePack);
311 MCAPI
void _validateDependencies();
321 ::PackCommand::IPackCommandPipeline* commands
328 MCAPI static ::
std::set<::mce::UUID>& CHEMISTRY_PACK_UUIDS();
338 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& pathManager,
339 ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline> commands,
354 MCAPI
void $getResourcePacksByPackId(
362 $getResourcePackForPackIdInPath(::
PackIdVersion const& idAndVersion, ::Core::
Path const& fullPath) const;
364 MCAPI ::
ResourcePack* $getResourcePackByUUID(::mce::UUID const&
id) const;
369 $getResourcePackSatisfiesPackId(::
PackIdVersion const& idAndVersion,
bool requireOwnership) const;
373 MCAPI ::
ResourcePack* $getResourcePackInPath(::Core::
Path const& path) const;
375 MCAPI
bool $isResourcePackLoaded(::
PackIdVersion const& identity, ::PackOrigin const& location);
385 MCAPI
bool $hasServicePacks(::
std::vector<::
PackIdVersion> const& servicePacksIds) const;
391 MCAPI
void $addCachedResourcePacks(::
std::unordered_map<::
ContentIdentity, ::
std::
string> const* tempCacheKeys);
393 MCAPI
void $addWorldResourcePacks(::Core::
Path const& levelPath);
395 MCAPI
void $addPremiumWorldTemplateResourcePacks(
396 ::Core::
Path const& worldTemplatePath,
400 MCAPI
void $addTempWorldTemplateResourcePacks(::mce::UUID const& worldTemplateUUID);
402 MCAPI
void $removePacksLoadedFromCache();
404 MCAPI
void $removePacksLoadedFromWorld();
406 MCAPI ::Core::PathBuffer<::
std::
string> const $getResourcePacksPath() const;
408 MCAPI ::Core::PathBuffer<::
std::
string> const $getBehaviorPacksPath() const;
410 MCAPI ::Core::PathBuffer<::
std::
string> const $getSkinPacksPath() const;
412 MCAPI ::Core::PathBuffer<::
std::
string> const $getDevelopmentResourcePacksPath() const;
414 MCAPI ::Core::PathBuffer<::
std::
string> const $getDevelopmentBehaviorPacksPath() const;
416 MCAPI ::Core::PathBuffer<::
std::
string> const $getDevelopmentSkinPacksPath() const;
418 MCAPI ::Core::PathBuffer<::
std::
string> const $getTreatmentPacksPath() const;
420 MCAPI
void $refreshPacks();
422 MCAPI
void $requestReloadUserPacks();
434 MCAPI ::
std::vector<::
ResourcePack*> $getPacksByResourceLocation(::PackOrigin type) const;
436 MCAPI ::
std::vector<::
ResourcePack*> $getPacksByType(::PackType type) const;
438 MCAPI ::
std::vector<::
ResourcePack*> $getPacksByCategory(::PackCategory category) const;
440 MCAPI
void $addInvalidPack(::
ResourceLocation const& packLocation, ::PackType type);
454 MCAPI
void $registerResourcePackRemovedCallback(
void* ptr, ::
std::function<
void(::
ResourcePack*)> callback);
456 MCAPI
void $unregisterResourcePackRemovedCallback(
void* ptr);
458 MCAPI
bool $isInitialized();