ForgeMeta

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.

Constructors

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

Functions

Link copied to clipboard

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

Link copied to clipboard
fun getForgeInstance(forgeVersion: String): <Error class: unknown class>

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

fun getForgeInstance(minecraftVersion: String, forgeVersion: String): <Error class: unknown class>

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
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
fun installerUrl(forgeVersion: String): <Error class: unknown class>

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

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

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

Link copied to clipboard
fun isForgeInstanceAvailable(forgeVersion: String): <Error class: unknown class>

Check whether Forge is available for a given Forge version

fun isForgeInstanceAvailable(minecraftVersion: String, forgeVersion: String): <Error class: unknown class>

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

Link copied to clipboard
fun isForgeVersionValid(forgeVersion: String): <Error class: unknown class>

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

Link copied to clipboard
fun isMinecraftVersionSupported(minecraftVersion: String): <Error class: unknown class>

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

Link copied to clipboard
fun minecraftVersion(forgeVersion: String): <Error class: unknown class>

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

Link copied to clipboard
fun newestForgeVersion(minecraftVersion: String): <Error class: unknown class>

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

Link copied to clipboard
fun oldestForgeVersion(minecraftVersion: String): <Error class: unknown class>

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

Link copied to clipboard
fun supportedForgeVersions(minecraftVersion: String): <Error class: unknown class>

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

Link copied to clipboard

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

Link copied to clipboard
fun update()

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