Interface LauncherCache
public interface LauncherCache
Provides logic on how a
Launcher instance should cache its downloaded files.-
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.
-
Method Details
-
downloadVersion
Cache a version file or download it if no cached version is available.- Throws:
IOException
-
downloadMappings
Cache a mapping file or download it if no cached version is available.- Throws:
IOException
-
downloadLibrary
Cache a library file or download it if no cached version is available.- Throws:
IOException
-
downloadAsset
Cache an asset or download it if no cached version is available.- Throws:
IOException
-