NeoForgeMeta

class NeoForgeMeta(oldNeoForgeManifest: File, newNeoForgeManifest: File, utilities: Utilities, installerCacheDirectory: File)

NeoForge meta containing information about available NeoForge releases.

Author

Griefed

Parameters

oldNeoForgeManifest

The manifest from which to acquire version information.

utilities

Commonly used utilities across ServerPackCreator.

Constructors

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

Functions

Link copied to clipboard

Get a NeoForgeInstance for a given NeoForge version, wrapped in an Optional.

fun getNeoForgeInstance(minecraftVersion: String, neoForgeVersion: String): Optional<NeoForgeInstance>

Get a NeoForgeInstance for a given Minecraft and NeoForge version, wrapped in an Optional.

Link copied to clipboard

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

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

Update this instances NeoForgeLoader with new information. Usually called after the NeoForge manifest has been refreshed.

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

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

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

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

Link copied to clipboard

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

Link copied to clipboard
fun isNeoForgeAndMinecraftCombinationValid(minecraftVersion: String, neoForgeVersion: String): Boolean

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

Link copied to clipboard

Check whether NeoForge is available for a given NeoForge version

fun isNeoForgeInstanceAvailable(minecraftVersion: String, neoForgeVersion: String): Boolean

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

Link copied to clipboard
fun isNeoForgeVersionValid(neoForgeVersion: String): Boolean

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

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

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

Link copied to clipboard

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

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

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

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

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun update()

Update this instances NeoForgeLoader with new information. Usually called after the NeoForge manifest has been refreshed.