| Constructor and Description |
|---|
LegacyFabricMeta(java.io.File gameVersionsManifest,
java.io.File loaderVersionsManifest,
java.io.File installerVersionsManifest,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.net.URL> |
getInstallerUrl(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.
|
java.util.List<java.lang.String> |
installerVersionsListAscending()
List of available installer version in ascending order.
|
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(java.lang.String minecraftVersion)
Check whether the given Minecraft version is supported by this modloader.
|
boolean |
isVersionValid(java.lang.String version)
Check whether the specified version is available/correct/valid.
|
java.lang.String |
latestInstaller()
Get the latest installer version.
|
java.net.URL |
latestInstallerUrl()
Get the URL to the latest installer.
|
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.
|
java.util.List<java.lang.String> |
loaderVersionsListAscending()
List of available loader versions in ascending order.
|
java.util.List<java.lang.String> |
loaderVersionsListDescending()
List of available loader versions in descending order.
|
java.lang.String |
releaseInstaller()
Get the release installer version.
|
java.net.URL |
releaseInstallerUrl()
Get the URL to the release installer.
|
java.lang.String |
releaseLoader()
Get the release loader version.
|
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,
com.fasterxml.jackson.databind.ObjectMapper mapper)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
java.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionpublic void update()
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
Metapublic java.lang.String latestLoader()
MetalatestLoader in interface Metapublic java.lang.String releaseLoader()
MetareleaseLoader in interface Metapublic java.lang.String latestInstaller()
MetalatestInstaller in interface Metapublic java.lang.String releaseInstaller()
MetareleaseInstaller in interface Metapublic java.util.List<java.lang.String> loaderVersionsListAscending()
MetaloaderVersionsListAscending in interface Metapublic 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 Metapublic java.util.List<java.lang.String> installerVersionsListAscending()
MetainstallerVersionsListAscending in interface Metapublic 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 Metapublic java.net.URL latestInstallerUrl()
throws java.net.MalformedURLException
MetalatestInstallerUrl in interface Metajava.net.MalformedURLException - when the URL could not be created.public 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.public java.util.Optional<java.net.URL> getInstallerUrl(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(java.lang.String version)
MetaisVersionValid in interface Metaversion - The version to check.true if the specified version is available/correct/valid.public boolean isMinecraftSupported(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.public java.util.List<java.lang.String> supportedMinecraftVersions()