public interface MinecraftDownloadProvider
| Modifier and Type | Method and Description |
|---|---|
CombinedDownloadTask<Void> |
asset(MinecraftDirectory mcdir,
Asset asset)
Returns an asset download task.
|
CombinedDownloadTask<Set<Asset>> |
assetsIndex(MinecraftDirectory mcdir,
Version version)
Returns an asset index download task.
|
CombinedDownloadTask<Void> |
gameJar(MinecraftDirectory mcdir,
Version version)
Returns a game jar download task.
|
CombinedDownloadTask<String> |
gameVersionJson(MinecraftDirectory mcdir,
String version)
Returns a game version json download task.
|
CombinedDownloadTask<Void> |
library(MinecraftDirectory mcdir,
Library library)
Returns a library download task.
|
CombinedDownloadTask<RemoteVersionList> |
versionList()
Returns a version list download task.
|
CombinedDownloadTask<RemoteVersionList> versionList()
CombinedDownloadTask<Set<Asset>> assetsIndex(MinecraftDirectory mcdir, Version version)
The asset index will also be saved to
${mcdir}/indexes/${version.getAssets()}.json.
mcdir - the minecraft dirversion - the minecraft versionCombinedDownloadTask<Void> gameJar(MinecraftDirectory mcdir, Version version)
The jar is saved to
${mcdir}/versions/${version.getVersion()}/${version.getVersion()}.jar
. If the file already exists, this method will overwrite the file.
mcdir - the minecraft dirversion - the minecraft versionCombinedDownloadTask<String> gameVersionJson(MinecraftDirectory mcdir, String version)
The version json file will be saved to
${mcdir}/versions/${version}/${version}.json. If the file
already exists, this method will overwrite the file.
mcdir - the minecraft dirversion - the game versionCombinedDownloadTask<Void> library(MinecraftDirectory mcdir, Library library)
The library will be saved to
${mcdir}/libraries/${library.getPath()}. If the file already
exists, this method will overwrite it.
mcdir - the minecraft dirlibrary - the library to downloadCombinedDownloadTask<Void> asset(MinecraftDirectory mcdir, Asset asset)
The asset will be saved to
${mcdir}/assets/objects/${2-character-prefix of hash}/${hash}
. If the file already exists, this method will overwrite it.
mcdir - the minecraft dirasset - the asset to downloadCopyright © 2016. All rights reserved.