| Constructor and Description |
|---|
QuiltMeta(java.io.File quiltManifest,
java.io.File quiltInstallerManifest,
FabricIntermediaries injectedFabricIntermediaries)
Create a new Quilt Meta instance, giving you access to available loader and installer versions,
as well as URLs to installer for further processing.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.net.URL> |
getInstallerUrl(java.lang.String quiltVersion)
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 quiltVersion)
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 quiltVersion)
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.
|
public QuiltMeta(java.io.File quiltManifest,
java.io.File quiltInstallerManifest,
FabricIntermediaries injectedFabricIntermediaries)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
quiltManifest - Quilt manifest file.quiltInstallerManifest - Quilt-installer manifest file.injectedFabricIntermediaries - Fabric-Intermediaries for further compatibility tests.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.public 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.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.lang.String latestInstaller()
MetalatestInstaller in interface Metapublic java.lang.String releaseInstaller()
MetareleaseInstaller 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()
MetalatestInstallerUrl in interface Metapublic java.net.URL releaseInstallerUrl()
MetareleaseInstallerUrl in interface Metapublic boolean isInstallerUrlAvailable(java.lang.String quiltVersion)
MetaisInstallerUrlAvailable in interface MetaquiltVersion - The modloader version for which to check for installer availability.true if available.public java.util.Optional<java.net.URL> getInstallerUrl(java.lang.String quiltVersion)
MetagetInstallerUrl in interface MetaquiltVersion - The modloader version for which to get the installer.public boolean isVersionValid(java.lang.String quiltVersion)
MetaisVersionValid in interface MetaquiltVersion - 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.