ForgeMeta

expect class ForgeMeta(forgeManifest: File, utilities: Utilities, installerCacheDirectory: File)

Forge meta containing information about available Forge releases.

Author

Griefed

Parameters

forgeManifest

The manifest from which to acquire version information.

utilities

Commonly used utilities across ServerPackCreator.

actual class ForgeMeta

Forge meta containing information about available Forge releases.

Author

Griefed

Parameters

forgeManifest

The manifest from which to acquire version information.

utilities

Commonly used utilities across ServerPackCreator.

Constructors

Link copied to clipboard
expect constructor(forgeManifest: File, utilities: Utilities, installerCacheDirectory: File)

Functions

Link copied to clipboard

Get the list of available Forge versions, in ascending order.

Get the list of available Forge versions, in ascending order.

Link copied to clipboard

Get the array of available Forge versions, in ascending order.

Get the array of available Forge versions, in ascending order.

Link copied to clipboard

Get the list of available Forge versions, in descending order.

Get the list of available Forge versions, in descending order.

Link copied to clipboard

Get the array of available Forge versions, in descending order.

Get the array of available Forge versions, in descending order.

Link copied to clipboard

Get a ForgeInstance for a given Forge version, wrapped in an Optional.

fun getForgeInstance(minecraftVersion: String, forgeVersion: String): Optional<ForgeInstance>

Get a ForgeInstance for a given Minecraft and Forge version, wrapped in an Optional.

Link copied to clipboard

Get a list of all available ForgeInstance for a given Minecraft version, wrapped in an Optional

Link copied to clipboard
Link copied to clipboard
fun initialize(injectedMinecraftMeta: MinecraftMeta)

Update this instances ForgeLoader with new information. Usually called after the Forge manifest has been refreshed.

Link copied to clipboard
expect fun installerFor(forgeVersion: String, minecraftVersion: String): Optional<File>

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

actual fun installerFor(forgeVersion: String, minecraftVersion: String): Optional<File>

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

Link copied to clipboard
expect fun installerUrl(forgeVersion: String): Optional<URL>

Get the Forge server installer URL for a given Forge version, wrapped in an Optional.

actual fun installerUrl(forgeVersion: String): Optional<URL>

Get the Forge server installer URL for a given Forge version, wrapped in an Optional.

Link copied to clipboard
expect fun isForgeAndMinecraftCombinationValid(minecraftVersion: String, forgeVersion: String): Boolean

Check whether the given Minecraft and Forge versions are valid/supported/available.

actual fun isForgeAndMinecraftCombinationValid(minecraftVersion: String, forgeVersion: String): Boolean

Check whether the given Minecraft and Forge versions are valid/supported/available.

Link copied to clipboard
expect fun isForgeInstanceAvailable(forgeVersion: String): Boolean

Check whether Forge is available for a given Forge version

expect fun isForgeInstanceAvailable(minecraftVersion: String, forgeVersion: String): Boolean

Check whether Forge is available for a given Forge- and Minecraft version.

actual fun isForgeInstanceAvailable(forgeVersion: String): Boolean

Check whether Forge is available for a given Forge version

actual fun isForgeInstanceAvailable(minecraftVersion: String, forgeVersion: String): Boolean

Check whether Forge is available for a given Forge- and Minecraft version.

Link copied to clipboard
expect fun isForgeVersionValid(forgeVersion: String): Boolean

Check whether a given Forge version is valid/supported/available.

actual fun isForgeVersionValid(forgeVersion: String): Boolean

Check whether a given Forge version is valid/supported/available.

Link copied to clipboard
expect fun isMinecraftVersionSupported(minecraftVersion: String): Boolean

Check whether a given Minecraft version is valid/supported/available.

actual fun isMinecraftVersionSupported(minecraftVersion: String): Boolean

Check whether a given Minecraft version is valid/supported/available.

Link copied to clipboard
expect fun minecraftVersion(forgeVersion: String): Optional<String>

Get the Minecraft version for a given Forge version, wrapped in an Optional.

actual fun minecraftVersion(forgeVersion: String): Optional<String>

Get the Minecraft version for a given Forge version, wrapped in an Optional.

Link copied to clipboard
expect fun newestForgeVersion(minecraftVersion: String): Optional<String>

Latest Forge version for a given Minecraft version, wrapped in Optional

actual fun newestForgeVersion(minecraftVersion: String): Optional<String>

Latest Forge version for a given Minecraft version, wrapped in Optional

Link copied to clipboard
expect fun oldestForgeVersion(minecraftVersion: String): Optional<String>

Oldest Forge version for a given Minecraft version, wrapped in Optional

actual fun oldestForgeVersion(minecraftVersion: String): Optional<String>

Oldest Forge version for a given Minecraft version, wrapped in Optional

Link copied to clipboard
expect fun supportedForgeVersionsAscending(minecraftVersion: String): Optional<List<String>>

Get a list of available Forge version for a given Minecraft version in ascending order.

actual fun supportedForgeVersionsAscending(minecraftVersion: String): Optional<List<String>>

Get a list of available Forge version for a given Minecraft version in ascending order.

Link copied to clipboard

Get an array of available Forge version for a given Minecraft version, in ascending order, wrapped in an Optional.

Get an array of available Forge version for a given Minecraft version, in ascending order, wrapped in an Optional.

Link copied to clipboard

Get a list of available Forge version for a given Minecraft version in descending order.

Get a list of available Forge version for a given Minecraft version in descending order.

Link copied to clipboard

Get an array of available Forge version for a given Minecraft version, in descending order, wrapped in an Optional.

Get an array of available Forge version for a given Minecraft version, in descending order, wrapped in an Optional.

Link copied to clipboard

Get the list of Forge supported Minecraft versions, in ascending order.

Get the list of Forge supported Minecraft versions, in ascending order.

Link copied to clipboard

Get the array of Forge supported Minecraft versions, in ascending order.

Get the array of Forge supported Minecraft versions, in ascending order.

Link copied to clipboard

Get the list of Forge supported Minecraft versions, in descending order.

Get the list of Forge supported Minecraft versions, in descending order.

Get the array of Forge supported Minecraft versions, in descending order.

Get the array of Forge supported Minecraft versions, in descending order.

Link copied to clipboard
fun update()

Update this instances ForgeLoader with new information. Usually called after the Forge manifest has been refreshed.