52 ::ll::TypedStorage<1, 1, bool> mDiscoveredOnDisk;
53 ::ll::TypedStorage<8, 56, ::ResourceLocation> mResourceLocation;
54 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mPastHashes;
55 ::ll::TypedStorage<8, 48, ::PackIdVersion> mIdentity;
64 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>> mFilePathManager;
65 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ResourcePack>>> mAllResourcePacks;
66 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mPackSource;
67 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mCachePackSource;
68 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mWorldPackSource;
69 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mPremiumWorldTemplatePackSource;
70 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompositePackSource>> mTempWorldTemplatePackSource;
71 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackSourceReport>> mPackSourceReport;
72 ::ll::TypedStorage<8, 8, ::ResourcePack*> mEditorPack;
73 ::ll::TypedStorage<8, 8, ::ResourcePack*> mVanillaPack;
74 ::ll::TypedStorage<8, 24, ::std::vector<::PackIdVersion>> mServicePacks;
75 ::ll::TypedStorage<8, 24, ::std::vector<::ResourceLocation>> mInvalidPackLocation;
76 ::ll::TypedStorage<8, 24, ::std::vector<::ResourceLocation>> mInvalidBehaviorPackLocation;
77 ::ll::TypedStorage<8, 24, ::std::vector<::ResourceLocation>> mInvalidResourcePackLocation;
78 ::ll::TypedStorage<8, 24, ::std::vector<::ResourceLocation>> mInvalidTemplatePackLocation;
79 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
80 ::ll::TypedStorage<8, 8, ::PackManifestFactory&> mManifestFactory;
81 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentAccessibilityProvider>> mContentAccessibility;
82 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mCurrentWorldPath;
83 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mCurrentPremiumWorldTemplatePath;
84 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ContentIdentity, ::std::string>> mTempCacheContentKeys;
85 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackSettingsFactory>> mPackSettingsFactory;
86 ::ll::TypedStorage<8, 8, ::PackSourceFactory&> mPackSourceFactory;
87 ::ll::TypedStorage<8, 16, ::std::map<
void*, ::std::function<void(
::ResourcePack*)>>> mRemoveResourcePackCallback;
88 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mInitTaskGroup;
89 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mInitializeMutex;
90 ::ll::TypedStorage<1, 1, bool> mCancelInitialization;
91 ::ll::TypedStorage<1, 1, bool> mInitialized;
92 ::ll::TypedStorage<1, 1, bool> mReloadUserPacksRequested;
93 ::ll::TypedStorage<1, 1, bool> mRefreshPacksRequested;
94 ::ll::TypedStorage<8, 24, ::ContentIdentity> mCurrentPremiumWorldTemplateIdentity;
98 LLAPI
void addCustomResourcePackPath(std::filesystem::path
const& path, PackType type);
107 virtual void getResourcePacksByPackId(
108 ::std::vector<::PackInstanceId>
const& packInstanceIds,
109 ::std::vector<::PackInstance>& result
113 virtual ::ResourcePack* getResourcePackForPackId(
::PackIdVersion const& idAndVersion)
const ;
116 virtual ::ResourcePack*
121 virtual ::ResourcePack* getResourcePackByUUID(
::mce::UUID const&
id)
const ;
124 virtual ::ResourcePack* getResourcePackForPackIdOwned(
::PackIdVersion const& idAndVersion)
const ;
127 virtual ::ResourcePack*
128 getResourcePackSatisfiesPackId(
::PackIdVersion const& idAndVersion,
bool requireOwnership)
const ;
131 virtual ::ResourcePack* getResourcePackContainingModule(
::PackIdVersion const& idAndVersion)
const ;
134 virtual ::ResourcePack* getResourcePackInPath(
::Core::Path const& path)
const ;
137 virtual bool isResourcePackLoaded(
::PackIdVersion const& identity, ::PackOrigin
const& location) ;
140 virtual ::PackSourceReport
const* getPackLoadingReport() const ;
149 virtual
bool setServicePacks(::
std::vector<::
PackIdVersion> servicePackIds) ;
152 virtual
bool hasServicePacks(::
std::vector<::
PackIdVersion> const& servicePacksIds) const ;
161 virtual
void addCachedResourcePacks(::
std::unordered_map<::
ContentIdentity, ::
std::
string> const* tempCacheKeys
165 virtual
void addWorldResourcePacks(::Core::
Path const& levelPath) ;
168 virtual
void addPremiumWorldTemplateResourcePacks(
169 ::Core::
Path const& worldTemplatePath,
174 virtual
void addTempWorldTemplateResourcePacks(::mce::UUID const& worldTemplateUUID) ;
177 virtual
void removePacksLoadedFromCache() ;
180 virtual
void removePacksLoadedFromWorld() ;
183 virtual ::Core::PathBuffer<::
std::
string> const getResourcePacksPath() const ;
186 virtual ::Core::PathBuffer<::
std::
string> const getBehaviorPacksPath() const ;
189 virtual ::Core::PathBuffer<::
std::
string> const getSkinPacksPath() const ;
192 virtual ::Core::PathBuffer<::
std::
string> const getDevelopmentResourcePacksPath() const ;
195 virtual ::Core::PathBuffer<::
std::
string> const getDevelopmentBehaviorPacksPath() const ;
198 virtual ::Core::PathBuffer<::
std::
string> const getDevelopmentSkinPacksPath() const ;
201 virtual ::Core::PathBuffer<::
std::
string> const getTreatmentPacksPath() const ;
204 virtual
void refreshPacks() ;
207 virtual
void requestReloadUserPacks() ;
210 virtual ::Bedrock::NotNullNonOwnerPtr<::
IContentKeyProvider const> getKeyProvider() const ;
225 virtual ::
std::vector<::
ResourcePack*> getPacksByResourceLocation(::PackOrigin type) const ;
228 virtual ::
std::vector<::
ResourcePack*> getPacksByType(::PackType type) const ;
231 virtual ::
std::vector<::
ResourcePack*> getPacksByCategory(::PackCategory category) const ;
234 virtual
void addInvalidPack(::
ResourceLocation const& packLocation, ::PackType type) ;
257 registerResourcePackRemovedCallback(
void* ptr, ::
std::function<
void(::
ResourcePack*)> callback) ;
260 virtual
void unregisterResourcePackRemovedCallback(
void* ptr) ;
263 virtual
bool isInitialized() ;
273 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& pathManager,
278 MCAPI
bool _addResourcePackIfNotAlreadyAdded(::
Pack& pack);
280 MCAPI
void _findVanillaPacks();
282 MCAPI
void _initialize();
284 MCAPI
void _initializeCachedPackSource();
286 MCAPI
void _initializePackSource();
288 MCAPI
void _initializeWorldPackSource();
290 MCAPI
void _loadPacks();
292 MCAPI
bool _packExists(::mce::UUID const& packId, ::
SemVersion const& version, ::PackOrigin origin) const;
294 MCAPI
void _reloadUserPacks();
296 MCAPI
bool _removePack(::
ResourceLocation const& packLocation,
bool unregisterDeleteCallback);
298 MCAPI
void _triggerRemoveResourcePackCallback(::
ResourcePack* resourcePack);
300 MCAPI
void _validateDependencies();
306 MCAPI static ::
std::set<::mce::UUID>& CHEMISTRY_PACK_UUIDS();
316 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& pathManager,
331 MCAPI
void $getResourcePacksByPackId(
339 $getResourcePackForPackIdInPath(::
PackIdVersion const& idAndVersion, ::Core::
Path const& fullPath) const;
341 MCAPI ::
ResourcePack* $getResourcePackByUUID(::mce::UUID const&
id) const;
346 $getResourcePackSatisfiesPackId(::
PackIdVersion const& idAndVersion,
bool requireOwnership) const;
350 MCAPI ::
ResourcePack* $getResourcePackInPath(::Core::
Path const& path) const;
352 MCAPI
bool $isResourcePackLoaded(::
PackIdVersion const& identity, ::PackOrigin const& location);
362 MCAPI
bool $hasServicePacks(::
std::vector<::
PackIdVersion> const& servicePacksIds) const;
368 MCAPI
void $addCachedResourcePacks(::
std::unordered_map<::
ContentIdentity, ::
std::
string> const* tempCacheKeys);
370 MCAPI
void $addWorldResourcePacks(::Core::
Path const& levelPath);
372 MCAPI
void $addPremiumWorldTemplateResourcePacks(
373 ::Core::
Path const& worldTemplatePath,
377 MCAPI
void $addTempWorldTemplateResourcePacks(::mce::UUID const& worldTemplateUUID);
379 MCAPI
void $removePacksLoadedFromCache();
381 MCAPI
void $removePacksLoadedFromWorld();
383 MCAPI ::Core::PathBuffer<::
std::
string> const $getResourcePacksPath() const;
385 MCAPI ::Core::PathBuffer<::
std::
string> const $getBehaviorPacksPath() const;
387 MCAPI ::Core::PathBuffer<::
std::
string> const $getSkinPacksPath() const;
389 MCAPI ::Core::PathBuffer<::
std::
string> const $getDevelopmentResourcePacksPath() const;
391 MCAPI ::Core::PathBuffer<::
std::
string> const $getDevelopmentBehaviorPacksPath() const;
393 MCAPI ::Core::PathBuffer<::
std::
string> const $getDevelopmentSkinPacksPath() const;
395 MCAPI ::Core::PathBuffer<::
std::
string> const $getTreatmentPacksPath() const;
397 MCAPI
void $refreshPacks();
399 MCAPI
void $requestReloadUserPacks();
411 MCAPI ::
std::vector<::
ResourcePack*> $getPacksByResourceLocation(::PackOrigin type) const;
413 MCAPI ::
std::vector<::
ResourcePack*> $getPacksByType(::PackType type) const;
415 MCAPI ::
std::vector<::
ResourcePack*> $getPacksByCategory(::PackCategory category) const;
417 MCAPI
void $addInvalidPack(::
ResourceLocation const& packLocation, ::PackType type);
431 MCAPI
void $registerResourcePackRemovedCallback(
void* ptr, ::
std::function<
void(::
ResourcePack*)> callback);
433 MCAPI
void $unregisterResourcePackRemovedCallback(
void* ptr);
435 MCAPI
bool $isInitialized();
441 MCAPI static
void** $vftable();