public interface Meta
| 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.
|
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.
|
void update()
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException - indicates a serious configuration error.java.io.IOException - if any IO errors occur.org.xml.sax.SAXException - if any parse errors occur.java.lang.String latestLoader()
java.lang.String releaseLoader()
java.lang.String latestInstaller()
java.lang.String releaseInstaller()
java.util.List<java.lang.String> loaderVersionsListAscending()
java.util.List<java.lang.String> loaderVersionsListDescending()
java.lang.String[] loaderVersionsArrayAscending()
java.lang.String[] loaderVersionsArrayDescending()
java.util.List<java.lang.String> installerVersionsListAscending()
java.util.List<java.lang.String> installerVersionsListDescending()
java.lang.String[] installerVersionsArrayAscending()
java.lang.String[] installerVersionsArrayDescending()
java.net.URL latestInstallerUrl()
throws java.net.MalformedURLException
java.net.MalformedURLException - when the URL could not be created.java.net.URL releaseInstallerUrl()
throws java.net.MalformedURLException
java.net.MalformedURLException - when the URL could not be created.boolean isInstallerUrlAvailable(java.lang.String version)
version - The modloader version for which to check for installer availability.true if available.java.util.Optional<java.net.URL> getInstallerUrl(java.lang.String version)
throws java.net.MalformedURLException
version - The modloader version for which to get the installer.java.net.MalformedURLException - when the URL could not be created.boolean isVersionValid(java.lang.String version)
version - The version to check.true if the specified version is available/correct/valid.boolean isMinecraftSupported(java.lang.String minecraftVersion)
minecraftVersion - The Minecraft version for which to check for support.true if the specified Minecraft version is supported.