public class InfoDownloadProvider extends AbstractMinecraftDownloadProvider implements ExtendedDownloadProvider
| Constructor and Description |
|---|
InfoDownloadProvider() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
setUpstreamProvider(MinecraftDownloadProvider upstreamProvider) |
asset, versionListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasset, versionListpublic 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 MinecraftDownloadProviderassetsIndex in class AbstractMinecraftDownloadProvidermcdir - 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 MinecraftDownloadProvidergameJar in class AbstractMinecraftDownloadProvidermcdir - the minecraft dirversion - the minecraft 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 MinecraftDownloadProviderlibrary in class AbstractMinecraftDownloadProvidermcdir - the minecraft dirlibrary - the library to downloadpublic 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 MinecraftDownloadProvidergameVersionJson in class AbstractMinecraftDownloadProvidermcdir - the minecraft dirversion - the game versionpublic void setUpstreamProvider(MinecraftDownloadProvider upstreamProvider)
setUpstreamProvider in interface ExtendedDownloadProviderCopyright © 2016. All rights reserved.