FabricMeta

expect class FabricMeta : Meta

Fabric meta containing information about available Quilt versions and installers.

Author

Griefed

actual class FabricMeta(fabricManifest: File, fabricInstallerManifest: File, fabricIntermediaries: FabricIntermediaries, objectMapper: ObjectMapper, utilities: Utilities, installerCacheDirectory: File) : Meta

Fabric meta containing information about available Quilt versions and installers.

Author

Griefed

Parameters

fabricManifest

Fabric manifest file.

fabricInstallerManifest

Fabric-installer manifest file.

fabricIntermediaries

Fabric Intermediary instance.

objectMapper

Object mapper for JSON parsing.

utilities

Commonly used utilities across ServerPackCreator.

installerCacheDirectory

The cache-directory for all installers.

Constructors

Link copied to clipboard
constructor(fabricManifest: File, fabricInstallerManifest: File, fabricIntermediaries: FabricIntermediaries, objectMapper: ObjectMapper, utilities: Utilities, installerCacheDirectory: File)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
expect open override fun getInstallerUrl(version: String): Optional<URL>

Get the URL to the installer for the specified version, wrapped in an Optional.

actual open override fun getInstallerUrl(version: String): Optional<URL>
Link copied to clipboard
fun getLoaderDetails(minecraftVersion: String, fabricVersion: String): Optional<FabricDetails>

Get details for a Fabric loader.

Link copied to clipboard
expect fun improvedLauncherUrl(minecraftVersion: String, fabricVersion: String): URL

Get the URL to the Fabric launcher for the specified Minecraft and Fabric version.

actual fun improvedLauncherUrl(minecraftVersion: String, fabricVersion: String): URL

Get the URL to the Fabric launcher for the specified Minecraft and Fabric version.

Link copied to clipboard
expect open override fun installerFor(version: String): Optional<File>

Installer file for the specified modloader version, wrapped in an Optional, so you can check whether it is available first.

actual open override fun installerFor(version: String): Optional<File>
Link copied to clipboard
expect open override fun installerVersionsArrayAscending(): Array<String>

Array of available installer version in ascending order.

actual open override fun installerVersionsArrayAscending(): Array<String>
Link copied to clipboard
expect open override fun installerVersionsArrayDescending(): Array<String>

Array of available installer version in descending order.

actual open override fun installerVersionsArrayDescending(): Array<String>
Link copied to clipboard

List of available installer version in ascending order.

Link copied to clipboard
expect open override fun installerVersionsListDescending(): List<String>

List of available installer version in descending order.

actual open override fun installerVersionsListDescending(): List<String>
Link copied to clipboard
expect open override fun isInstallerUrlAvailable(version: String): Boolean

Check whether a URL to an installer is available for the specified version.

actual open override fun isInstallerUrlAvailable(version: String): Boolean
Link copied to clipboard
expect open override fun isMinecraftSupported(minecraftVersion: String): Boolean

Check whether the given Minecraft version is supported by this modloader.

actual open override fun isMinecraftSupported(minecraftVersion: String): Boolean
Link copied to clipboard
expect open override fun isVersionValid(version: String): Boolean

Check whether the specified version is available/correct/valid.

actual open override fun isVersionValid(version: String): Boolean
Link copied to clipboard
expect open override fun latestInstaller(): String

Get the latest installer version.

actual open override fun latestInstaller(): String
Link copied to clipboard
expect open override fun latestInstallerUrl(): URL

Get the URL to the latest installer.

actual open override fun latestInstallerUrl(): URL
Link copied to clipboard
expect open override fun latestLoader(): String

Get the latest loader version.

actual open override fun latestLoader(): String
Link copied to clipboard
expect fun launcherFor(minecraftVersion: String, fabricVersion: String): Optional<File>

Download the improved Fabric launcher and store it in the launcher-cache directory.

actual fun launcherFor(minecraftVersion: String, fabricVersion: String): Optional<File>

Download the improved Fabric launcher and store it in the launcher-cache directory.

Link copied to clipboard
expect open override fun loaderVersionsArrayAscending(): Array<String>

Array of available loader versions in ascending order.

actual open override fun loaderVersionsArrayAscending(): Array<String>
Link copied to clipboard
expect open override fun loaderVersionsArrayDescending(): Array<String>

Array of available loader versions in descending order.

actual open override fun loaderVersionsArrayDescending(): Array<String>
Link copied to clipboard
expect open override fun loaderVersionsListAscending(): MutableList<String>

List of available loader versions in ascending order.

actual open override fun loaderVersionsListAscending(): MutableList<String>
Link copied to clipboard
expect open override fun loaderVersionsListDescending(): List<String>

List of available loader versions in descending order.

actual open override fun loaderVersionsListDescending(): List<String>
Link copied to clipboard
expect open override fun releaseInstaller(): String

Get the release installer version.

actual open override fun releaseInstaller(): String
Link copied to clipboard
expect open override fun releaseInstallerUrl(): URL

Get the URL to the release installer.

actual open override fun releaseInstallerUrl(): URL
Link copied to clipboard
expect open override fun releaseLoader(): String

Get the release loader version.

actual open override fun releaseLoader(): String
Link copied to clipboard
abstract fun 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.

open override fun update()