public final class LegacyFabricInstaller
extends java.lang.Object
| Constructor and Description |
|---|
LegacyFabricInstaller(@NotNull java.io.File installerVersionsManifest,
@NotNull Utilities utilities)
New instance holding information about the LegacyFabric installer and versions.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.List<java.lang.String> |
all()
All available installer versions.
|
@NotNull java.lang.String |
latest()
The latest version of the Legacy Fabric installer.
|
@NotNull java.net.URL |
latestURL()
The URL to the latest installer for Legacy Fabric.
|
@NotNull java.lang.String |
release()
The release version of the Legacy Fabric installer.
|
@NotNull java.net.URL |
releaseURL()
The URL to the release installer for Legacy Fabric.
|
@NotNull java.util.Optional<java.net.URL> |
specificURL(@NotNull java.lang.String version)
Get the URL for a specific installer version, wrapped in an Optional.
|
public LegacyFabricInstaller(@NotNull
@NotNull java.io.File installerVersionsManifest,
@NotNull
@NotNull Utilities utilities)
installerVersionsManifest - Manifest containing information about LegacyFabric installer
versions.utilities - Commonly used utilities across ServerPackCreator.@Contract(pure=true) @NotNull public @NotNull java.util.List<java.lang.String> all()
@Contract(pure=true) @NotNull public @NotNull java.lang.String latest()
@Contract(pure=true) @NotNull public @NotNull java.lang.String release()
@Contract(value=" -> new")
@NotNull
public @NotNull java.net.URL latestURL()
throws java.net.MalformedURLException
java.net.MalformedURLException - when the URL could not be created.@Contract(value=" -> new")
@NotNull
public @NotNull java.net.URL releaseURL()
throws java.net.MalformedURLException
java.net.MalformedURLException - when the URL could not be created.@NotNull
public @NotNull java.util.Optional<java.net.URL> specificURL(@NotNull
@NotNull 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.