Class LegacyFabricMeta
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.versionmeta.Meta
public final class LegacyFabricMeta implements Meta
LegacyFabric meta providing game, loader and installer version information.
Griefed
-
-
Method Summary
Modifier and Type Method Description List<String>loaderVersions()List of available loader versions in ascending order. List<String>installerVersions()List of available installer version in ascending order. 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. StringlatestLoader()Get the latest loader version. StringreleaseLoader()Get the release loader version. StringlatestInstaller()Get the latest installer version. StringreleaseInstaller()Get the release installer version. URLlatestInstallerUrl()Get the URL to the latest installer. URLreleaseInstallerUrl()Get the URL to the release installer. 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. BooleanisInstallerUrlAvailable(String version)Optional<URL>getInstallerUrl(String version)BooleanisVersionValid(String version)BooleanisMinecraftSupported(String minecraftVersion)final List<String>supportedMinecraftVersions()All Legacy Fabric supported Minecraft versions. -
-
Constructor Detail
-
LegacyFabricMeta
LegacyFabricMeta(File gameVersionsManifest, File loaderVersionsManifest, File installerVersionsManifest, Utilities utilities, File installerCacheDirectory)
- Parameters:
gameVersionsManifest- Game version manifest.loaderVersionsManifest- Loader version manifest.installerVersionsManifest- Installer version manifest.utilities- Commonly used utilities across ServerPackCreator.installerCacheDirectory- The cache-directory for all installers.
-
-
Method Detail
-
loaderVersions
List<String> loaderVersions()
List of available loader versions in ascending order.
- Returns:
Available loader versions in ascending order.
-
installerVersions
List<String> installerVersions()
List of available installer version in ascending order.
- Returns:
Available installer version in ascending order.
-
update
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
String latestLoader()
Get the latest loader version.
- Returns:
The latest version.
-
releaseLoader
String releaseLoader()
Get the release loader version.
- Returns:
The release loader version.
-
latestInstaller
String latestInstaller()
Get the latest installer version.
- Returns:
The latest installer version.
-
releaseInstaller
String releaseInstaller()
Get the release installer version.
- Returns:
The release installer version.
-
latestInstallerUrl
URL latestInstallerUrl()
Get the URL to the latest installer.
- Returns:
URL to the latest installer.
-
releaseInstallerUrl
URL releaseInstallerUrl()
Get the URL to the release installer.
- Returns:
URL to the release installer.
-
installerFor
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
Boolean isInstallerUrlAvailable(String version)
-
getInstallerUrl
Optional<URL> getInstallerUrl(String version)
-
isVersionValid
Boolean isVersionValid(String version)
-
isMinecraftSupported
Boolean isMinecraftSupported(String minecraftVersion)
-
supportedMinecraftVersions
final List<String> supportedMinecraftVersions()
All Legacy Fabric supported Minecraft versions.
- Returns:
All Legacy Fabric supported Minecraft versions.
-
-
-
-