public abstract class URIDownloadProvider extends Object implements MinecraftDownloadProvider
| Constructor and Description |
|---|
URIDownloadProvider() |
@Deprecated protected URI getLibrary(Library library)
@Deprecated protected URI getGameJar(Version version)
@Deprecated protected URI getGameVersionJson(String version)
@Deprecated protected URI getAssetIndex(Version version)
protected URI getVersionList()
public CombinedDownloadTask<RemoteVersionList> versionList()
MinecraftDownloadProviderversionList in interface MinecraftDownloadProvider@Deprecated public 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 version@Deprecated public 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 version@Deprecated 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 MinecraftDownloadProvidermcdir - the minecraft dirversion - the game version@Deprecated public 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 downloadpublic void registerLibraryDownloadHandler(String postfix, LibraryDownloadHandler handler)
public void unregisterLibraryDownloadHandler(String postfix)
Copyright © 2016. All rights reserved.