public interface MinecraftDownloader extends Shutdownable, DownloaderService, CombinedDownloader
| Modifier and Type | Method and Description |
|---|---|
Future<Version> |
downloadIncrementally(MinecraftDirectory dir,
String version,
CombinedDownloadCallback<Version> callback)
Downloads a minecraft version incrementally and asynchronously.
|
Future<RemoteVersionList> |
fetchRemoteVersionList(CombinedDownloadCallback<RemoteVersionList> callback)
Fetches the remote version list of the game asynchronously.
|
download, downloaddownload, downloadisShutdown, shutdownFuture<Version> downloadIncrementally(MinecraftDirectory dir, String version, CombinedDownloadCallback<Version> callback)
The method will check the asset files, library files, game jars. And downloads the missing or broken ones.
dir - the minecraft dirversion - the version to downloadcallback - the callbackNullPointerException - if dir==null || version==nullRejectedExecutionException - if the downloader has been shutdownFuture<RemoteVersionList> fetchRemoteVersionList(CombinedDownloadCallback<RemoteVersionList> callback)
callback - the callbackRejectedExecutionException - if the downloader has been shutdownCopyright © 2016. All rights reserved.