Interface Meta
-
- All Implemented Interfaces:
public interface MetaProvide default methods to access a given Metas versions.
Griefed
-
-
Method Summary
Modifier and Type Method Description abstract Unitupdate()Update the meta-information for this modloader-meta, updating the available loader and installer versions, thus giving you access to version-checks, URLs etc. abstract StringlatestLoader()Get the latest loader version. abstract StringreleaseLoader()Get the release loader version. abstract StringlatestInstaller()Get the latest installer version. abstract StringreleaseInstaller()Get the release installer version. abstract List<String>loaderVersions()List of available loader versions in ascending order. abstract List<String>installerVersions()List of available installer version in ascending order. abstract URLlatestInstallerUrl()Get the URL to the latest installer. abstract URLreleaseInstallerUrl()Get the URL to the release installer. abstract Optional<File>installerFor(String version)Installer file for the specified modloader version, wrapped in an Optional, so you can check whether it is available first. abstract BooleanisInstallerUrlAvailable(String version)Check whether a URL to an installer is available for the specified version. abstract Optional<URL>getInstallerUrl(String version)Get the URL to the installer for the specified version, wrapped in an Optional. abstract BooleanisVersionValid(String version)Check whether the specified version is available/correct/valid. abstract BooleanisMinecraftSupported(String minecraftVersion)Check whether the given Minecraft version is supported by this modloader. -
-
Method Detail
-
update
abstract Unit 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.
-
latestLoader
abstract String latestLoader()
Get the latest loader version.
- Returns:
The latest version.
-
releaseLoader
abstract String releaseLoader()
Get the release loader version.
- Returns:
The release loader version.
-
latestInstaller
abstract String latestInstaller()
Get the latest installer version.
- Returns:
The latest installer version.
-
releaseInstaller
abstract String releaseInstaller()
Get the release installer version.
- Returns:
The release installer version.
-
loaderVersions
abstract List<String> loaderVersions()
List of available loader versions in ascending order.
- Returns:
Available loader versions in ascending order.
-
installerVersions
abstract List<String> installerVersions()
List of available installer version in ascending order.
- Returns:
Available installer version in ascending order.
-
latestInstallerUrl
abstract URL latestInstallerUrl()
Get the URL to the latest installer.
- Returns:
URL to the latest installer.
-
releaseInstallerUrl
abstract URL releaseInstallerUrl()
Get the URL to the release installer.
- Returns:
URL to the release installer.
-
installerFor
abstract Optional<File> installerFor(String version)
Installer file for the specified modloader version, wrapped in an Optional, so you can check whether it is available first.
Fabric: Pass the installer version you require.
LegacyFabric: Pass the installer version you require.
Quilt: Pass the installer version you require.
-
isInstallerUrlAvailable
abstract Boolean isInstallerUrlAvailable(String version)
Check whether a URL to an installer is available for the specified version.
- Parameters:
version- The modloader version for which to check for installer availability.- Returns:
trueif available.
-
getInstallerUrl
abstract Optional<URL> getInstallerUrl(String version)
Get the URL to the installer for the specified version, wrapped in an Optional.
- Parameters:
version- The modloader version for which to get the installer.- Returns:
The URL to the installer, wrapped in an Optional.
-
isVersionValid
abstract Boolean isVersionValid(String version)
Check whether the specified version is available/correct/valid.
- Parameters:
version- The version to check.- Returns:
trueif the specified version is available/correct/valid.
-
isMinecraftSupported
abstract Boolean isMinecraftSupported(String minecraftVersion)
Check whether the given Minecraft version is supported by this modloader.
- Parameters:
minecraftVersion- The Minecraft version for which to check for support.- Returns:
trueif the specified Minecraft version is supported.
-
-
-
-