Class FabricMeta
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.versionmeta.Meta
public final class FabricMeta implements Meta
Fabric meta containing information about available Quilt versions and installers.
Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private final HashMap<String, FabricDetails>loaderDetails
-
Constructor Summary
Constructors Constructor Description FabricMeta(File fabricManifest, File fabricInstallerManifest, FabricIntermediaries fabricIntermediaries, ObjectMapper objectMapper, Utilities utilities, File installerCacheDirectory)
-
Method Summary
Modifier and Type Method Description final HashMap<String, FabricDetails>getLoaderDetails()Per-loader-version details, cached after first lookup so repeated queries cost nothing. 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. List<String>loaderVersions()List of available loader versions in ascending order. List<String>installerVersions()List of available installer version in ascending order. 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. final Optional<File>launcherFor(String minecraftVersion, String fabricVersion)Download the improved Fabric launcher and store it in the launcher-cache directory. BooleanisInstallerUrlAvailable(String version)Check whether a URL to an installer is available for the specified version. Optional<URL>getInstallerUrl(String version)Get the URL to the installer for the specified version, wrapped in an Optional. BooleanisVersionValid(String version)Check whether the specified version is available/correct/valid. BooleanisMinecraftSupported(String minecraftVersion)Check whether the given Minecraft version is supported by this modloader. final URLimprovedLauncherUrl(String minecraftVersion, String fabricVersion)Get the URL to the Fabric launcher for the specified Minecraft and Fabric version. final Optional<FabricDetails>getLoaderDetails(String minecraftVersion, String fabricVersion)Get details for a Fabric loader. -
-
Constructor Detail
-
FabricMeta
FabricMeta(File fabricManifest, File fabricInstallerManifest, FabricIntermediaries fabricIntermediaries, ObjectMapper objectMapper, Utilities utilities, File installerCacheDirectory)
-
-
Method Detail
-
getLoaderDetails
final HashMap<String, FabricDetails> getLoaderDetails()
Per-loader-version details, cached after first lookup so repeated queries cost nothing.
-
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.
-
releaseLoader
String releaseLoader()
Get the release loader version.
-
latestInstaller
String latestInstaller()
Get the latest installer version.
-
releaseInstaller
String releaseInstaller()
Get the release installer version.
-
loaderVersions
List<String> loaderVersions()
List of available loader versions in ascending order.
-
installerVersions
List<String> installerVersions()
List of available installer version in ascending order.
-
latestInstallerUrl
URL latestInstallerUrl()
Get the URL to the latest installer.
-
releaseInstallerUrl
URL releaseInstallerUrl()
Get the 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.
-
launcherFor
final Optional<File> launcherFor(String minecraftVersion, String fabricVersion)
Download the improved Fabric launcher and store it in the launcher-cache directory.
-
isInstallerUrlAvailable
Boolean isInstallerUrlAvailable(String version)
Check whether a URL to an installer is available for the specified version.
version — The modloader version for which to check for installer availability.
-
getInstallerUrl
Optional<URL> getInstallerUrl(String version)
Get the URL to the installer for the specified version, wrapped in an Optional.
version — The modloader version for which to get the installer.
-
isVersionValid
Boolean isVersionValid(String version)
Check whether the specified version is available/correct/valid.
-
isMinecraftSupported
Boolean isMinecraftSupported(String minecraftVersion)
Check whether the given Minecraft version is supported by this modloader.
minecraftVersion — The Minecraft version for which to check for support.
-
improvedLauncherUrl
final URL improvedLauncherUrl(String minecraftVersion, String fabricVersion)
Get the URL to the Fabric launcher for the specified Minecraft and Fabric version.
-
getLoaderDetails
final Optional<FabricDetails> getLoaderDetails(String minecraftVersion, String fabricVersion)
Get details for a Fabric loader.
-
-
-
-