Class LegacyFabricInstaller
-
- All Implemented Interfaces:
public final class LegacyFabricInstallerInformation about the LegacyFabric installer and versions.
Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private final List<String>allVersionsprivate final StringinstallerUrlTemplateprivate final Stringlatestprivate final Stringrelease
-
Constructor Summary
Constructors Constructor Description LegacyFabricInstaller(File installerManifest, Utilities utilities)
-
Method Summary
Modifier and Type Method Description final List<String>getAllVersions()final StringgetInstallerUrlTemplate()final StringgetLatest()final StringgetRelease()final Unitupdate()Update all lists of available versions with new information gathered from the manifest. final URLlatestURL()The URL to the latest installer for Legacy Fabric. final URLreleaseURL()The URL to the release installer for Legacy Fabric. final Optional<URL>specificURL(String version)Get the URL for a specific installer version, wrapped in an Optional. -
-
Method Detail
-
getAllVersions
final List<String> getAllVersions()
-
getInstallerUrlTemplate
final String getInstallerUrlTemplate()
-
getRelease
final String getRelease()
-
update
final Unit update()
Update all lists of available versions with new information gathered from the manifest.
-
latestURL
final URL latestURL()
The URL to the latest installer for Legacy Fabric.
- Returns:
URL to the latest installer for Legacy Fabric.
-
releaseURL
final URL releaseURL()
The URL to the release installer for Legacy Fabric.
- Returns:
URL to the release installer for Legacy Fabric.
-
specificURL
final Optional<URL> specificURL(String version)
Get the URL for a specific installer version, wrapped in an Optional.
- Parameters:
version- The version of the installer for which to get the URL.- Returns:
URL to the installer, for the specified version, wrapped in an Optional.
-
-
-
-