LegacyFabricMeta

class LegacyFabricMeta(gameVersionsManifest: File, loaderVersionsManifest: File, installerVersionsManifest: File, utilities: Utilities, installerCacheDirectory: File) : Meta

LegacyFabric meta providing game, loader and installer version information.

Author

Griefed

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.

Constructors

Link copied to clipboard
constructor(gameVersionsManifest: File, loaderVersionsManifest: File, installerVersionsManifest: File, utilities: Utilities, installerCacheDirectory: File)

Functions

Link copied to clipboard
open override fun getInstallerUrl(version: String): Optional<URL>
Link copied to clipboard
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.

Link copied to clipboard
open override fun installerVersions(): MutableList<String>

List of available installer version in ascending order.

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

Get the latest installer version.

Link copied to clipboard
open override fun latestInstallerUrl(): URL

Get the URL to the latest installer.

Link copied to clipboard
open override fun latestLoader(): String

Get the latest loader version.

Link copied to clipboard
open override fun loaderVersions(): MutableList<String>

List of available loader versions in ascending order.

Link copied to clipboard
open override fun releaseInstaller(): String

Get the release installer version.

Link copied to clipboard
open override fun releaseInstallerUrl(): URL

Get the URL to the release installer.

Link copied to clipboard
open override fun releaseLoader(): String

Get the release loader version.

Link copied to clipboard

All Legacy Fabric supported Minecraft versions.

Link copied to clipboard
open override 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.