Class PathCache
java.lang.Object
org.moddingx.launcherlib.launcher.cache.PathCache
- All Implemented Interfaces:
LauncherCache
An implementation of
LauncherCache that caches all downloads under a given base directory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownloadAsset(String hash, URL url) Cache an asset or download it if no cached version is available.downloadLibrary(String key, URL url) Cache a library file or download it if no cached version is available.downloadMappings(String version, String key, URL url) Cache a mapping file or download it if no cached version is available.downloadVersion(String version, String key, URL url) Cache a version file or download it if no cached version is available.
-
Constructor Details
-
PathCache
-
-
Method Details
-
downloadVersion
Description copied from interface:LauncherCacheCache a version file or download it if no cached version is available.- Specified by:
downloadVersionin interfaceLauncherCache- Throws:
IOException
-
downloadMappings
Description copied from interface:LauncherCacheCache a mapping file or download it if no cached version is available.- Specified by:
downloadMappingsin interfaceLauncherCache- Throws:
IOException
-
downloadLibrary
Description copied from interface:LauncherCacheCache a library file or download it if no cached version is available.- Specified by:
downloadLibraryin interfaceLauncherCache- Throws:
IOException
-
downloadAsset
Description copied from interface:LauncherCacheCache an asset or download it if no cached version is available.- Specified by:
downloadAssetin interfaceLauncherCache- Throws:
IOException
-