public abstract class AbstractMinecraftDownloadProvider extends Object implements MinecraftDownloadProvider
| Constructor and Description |
|---|
AbstractMinecraftDownloadProvider() |
| 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.
|
public CombinedDownloadTask<RemoteVersionList> versionList()
MinecraftDownloadProviderversionList in interface MinecraftDownloadProviderpublic CombinedDownloadTask<Set<Asset>> assetsIndex(MinecraftDirectory mcdir, Version version)
MinecraftDownloadProvider
The asset index will also be saved to
${mcdir}/indexes/${version.getAssets()}.json.
assetsIndex in interface MinecraftDownloadProvidermcdir - the minecraft dirversion - the minecraft versionpublic CombinedDownloadTask<Void> gameJar(MinecraftDirectory mcdir, Version version)
MinecraftDownloadProvider
The jar is saved to
${mcdir}/versions/${version.getVersion()}/${version.getVersion()}.jar
. If the file already exists, this method will overwrite the file.
gameJar in interface MinecraftDownloadProvidermcdir - the minecraft dirversion - the minecraft versionpublic CombinedDownloadTask<String> gameVersionJson(MinecraftDirectory mcdir, String version)
MinecraftDownloadProvider
The version json file will be saved to
${mcdir}/versions/${version}/${version}.json. If the file
already exists, this method will overwrite the file.
gameVersionJson in interface MinecraftDownloadProvidermcdir - the minecraft dirversion - the game versionpublic CombinedDownloadTask<Void> library(MinecraftDirectory mcdir, Library library)
MinecraftDownloadProvider
The library will be saved to
${mcdir}/libraries/${library.getPath()}. If the file already
exists, this method will overwrite it.
library in interface MinecraftDownloadProvidermcdir - the minecraft dirlibrary - the library to downloadpublic CombinedDownloadTask<Void> asset(MinecraftDirectory mcdir, Asset asset)
MinecraftDownloadProvider
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.
asset in interface MinecraftDownloadProvidermcdir - the minecraft dirasset - the asset to downloadCopyright © 2016. All rights reserved.