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

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
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): Optional<URL>

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

Check whether Forge is available for a given Forge version

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

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

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

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

Link copied to clipboard

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

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

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

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

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

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

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

Link copied to clipboard

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.