public class ForgeDownloadProvider extends AbstractMinecraftDownloadProvider implements ExtendedDownloadProvider
| Constructor and Description |
|---|
ForgeDownloadProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
decompressUniversalFromInstaller() |
protected String[] |
forgeInstallerUrls(ResolvedForgeVersion version) |
protected String[] |
forgeUniversalUrls(ResolvedForgeVersion version) |
CombinedDownloadTask<ForgeVersionList> |
forgeVersionList() |
protected String |
forgeVersionListUrl() |
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, assetsIndex, versionListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasset, assetsIndex, versionListpublic CombinedDownloadTask<ForgeVersionList> forgeVersionList()
public 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 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<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 void setUpstreamProvider(MinecraftDownloadProvider upstreamProvider)
setUpstreamProvider in interface ExtendedDownloadProviderprotected String forgeVersionListUrl()
protected String[] forgeInstallerUrls(ResolvedForgeVersion version)
protected String[] forgeUniversalUrls(ResolvedForgeVersion version)
protected boolean decompressUniversalFromInstaller()
Copyright © 2016. All rights reserved.