| Constructor and Description |
|---|
LegacyFabricMeta(java.io.File gameVersionsManifest,
java.io.File loaderVersionsManifest,
java.io.File installerVersionsManifest,
Utilities utilities)
LegacyFabric meta providing game, loader and installer version information.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.Optional<java.net.URL> |
getInstallerUrl(@NotNull java.lang.String version)
Get the URL to the installer for the specified version, wrapped in an Optional.
|
java.lang.String[] |
installerVersionsArrayAscending()
Array of available installer version in ascending order.
|
java.lang.String[] |
installerVersionsArrayDescending()
Array of available installer version in descending order.
|
@NotNull java.util.List<java.lang.String> |
installerVersionsListAscending()
List of available installer version in ascending order.
|
@NotNull java.util.List<java.lang.String> |
installerVersionsListDescending()
List of available installer version in descending order.
|
boolean |
isInstallerUrlAvailable(java.lang.String version)
Check whether a URL to an installer is available for the specified version.
|
boolean |
isMinecraftSupported(@NotNull java.lang.String minecraftVersion)
Check whether the given Minecraft version is supported by this modloader.
|
boolean |
isVersionValid(@NotNull java.lang.String version)
Check whether the specified version is available/correct/valid.
|
@NotNull java.lang.String |
latestInstaller()
Get the latest installer version.
|
@NotNull java.net.URL |
latestInstallerUrl()
Get the URL to the latest installer.
|
@NotNull java.lang.String |
latestLoader()
Get the latest loader version.
|
java.lang.String[] |
loaderVersionsArrayAscending()
Array of available loader versions in ascending order.
|
java.lang.String[] |
loaderVersionsArrayDescending()
Array of available loader versions in descending order.
|
@NotNull java.util.List<java.lang.String> |
loaderVersionsListAscending()
List of available loader versions in ascending order.
|
@NotNull java.util.List<java.lang.String> |
loaderVersionsListDescending()
List of available loader versions in descending order.
|
@NotNull java.lang.String |
releaseInstaller()
Get the release installer version.
|
@NotNull java.net.URL |
releaseInstallerUrl()
Get the URL to the release installer.
|
@NotNull java.lang.String |
releaseLoader()
Get the release loader version.
|
@NotNull java.util.List<java.lang.String> |
supportedMinecraftVersions()
All Legacy Fabric supported Minecraft versions.
|
void |
update()
Update the meta-information for this modloader-meta, updating the available loader and
installer versions, thus giving you access to version-checks, URLs etc.
|
public LegacyFabricMeta(java.io.File gameVersionsManifest,
java.io.File loaderVersionsManifest,
java.io.File installerVersionsManifest,
Utilities utilities)
gameVersionsManifest - Game version manifest.loaderVersionsManifest - Loader version manifest.installerVersionsManifest - Installer version manifest.utilities - Commonly used utilities across ServerPackCreator.public void update()
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
Meta@NotNull public @NotNull java.lang.String latestLoader()
MetalatestLoader in interface Meta@NotNull public @NotNull java.lang.String releaseLoader()
MetareleaseLoader in interface Meta@Contract(pure=true) @NotNull public @NotNull java.lang.String latestInstaller()
MetalatestInstaller in interface Meta@Contract(pure=true) @NotNull public @NotNull java.lang.String releaseInstaller()
MetareleaseInstaller in interface Meta@NotNull public @NotNull java.util.List<java.lang.String> loaderVersionsListAscending()
MetaloaderVersionsListAscending in interface Meta@NotNull public @NotNull java.util.List<java.lang.String> loaderVersionsListDescending()
MetaloaderVersionsListDescending in interface Metapublic java.lang.String[] loaderVersionsArrayAscending()
MetaloaderVersionsArrayAscending in interface Metapublic java.lang.String[] loaderVersionsArrayDescending()
MetaloaderVersionsArrayDescending in interface Meta@Contract(pure=true) @NotNull public @NotNull java.util.List<java.lang.String> installerVersionsListAscending()
MetainstallerVersionsListAscending in interface Meta@NotNull public @NotNull java.util.List<java.lang.String> installerVersionsListDescending()
MetainstallerVersionsListDescending in interface Metapublic java.lang.String[] installerVersionsArrayAscending()
MetainstallerVersionsArrayAscending in interface Metapublic java.lang.String[] installerVersionsArrayDescending()
MetainstallerVersionsArrayDescending in interface Meta@Contract(value=" -> new")
@NotNull
public @NotNull java.net.URL latestInstallerUrl()
throws java.net.MalformedURLException
MetalatestInstallerUrl in interface Metajava.net.MalformedURLException - when the URL could not be created.@Contract(value=" -> new")
@NotNull
public @NotNull java.net.URL releaseInstallerUrl()
throws java.net.MalformedURLException
MetareleaseInstallerUrl in interface Metajava.net.MalformedURLException - when the URL could not be created.public boolean isInstallerUrlAvailable(java.lang.String version)
MetaisInstallerUrlAvailable in interface Metaversion - The modloader version for which to check for installer availability.true if available.@NotNull
public @NotNull java.util.Optional<java.net.URL> getInstallerUrl(@NotNull
@NotNull java.lang.String version)
throws java.net.MalformedURLException
MetagetInstallerUrl in interface Metaversion - The modloader version for which to get the installer.java.net.MalformedURLException - when the URL could not be created.public boolean isVersionValid(@NotNull
@NotNull java.lang.String version)
MetaisVersionValid in interface Metaversion - The version to check.true if the specified version is available/correct/valid.public boolean isMinecraftSupported(@NotNull
@NotNull java.lang.String minecraftVersion)
MetaisMinecraftSupported in interface MetaminecraftVersion - The Minecraft version for which to check for support.true if the specified Minecraft version is supported.@NotNull public @NotNull java.util.List<java.lang.String> supportedMinecraftVersions()