public final class LegacyFabricInstaller extends Manifests
| Constructor and Description |
|---|
LegacyFabricInstaller(java.io.File installerVersionsManifest) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
all()
All available installer versions.
|
java.lang.String |
latest()
The latest version of the Legacy Fabric installer.
|
java.net.URL |
latestURL()
The URL to the latest installer for Legacy Fabric.
|
java.lang.String |
release()
The release version of the Legacy Fabric installer.
|
java.net.URL |
releaseURL()
The URL to the release installer for Legacy Fabric.
|
java.util.Optional<java.net.URL> |
specificURL(java.lang.String version)
Get the URL for a specific installer version, wrapped in an Optional.
|
public LegacyFabricInstaller(java.io.File installerVersionsManifest)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationExceptionjava.io.IOExceptionorg.xml.sax.SAXExceptionpublic java.util.List<java.lang.String> all()
public java.lang.String latest()
public java.lang.String release()
public java.net.URL latestURL()
throws java.net.MalformedURLException
java.net.MalformedURLException - when the URL could not be created.public java.net.URL releaseURL()
throws java.net.MalformedURLException
java.net.MalformedURLException - when the URL could not be created.public java.util.Optional<java.net.URL> specificURL(java.lang.String version)
throws java.net.MalformedURLException
version - The version of the installer for which to get the URL.java.net.MalformedURLException - when the URL could not be created.