MinecraftMeta

class MinecraftMeta(minecraftManifest: File, injectedForgeMeta: ForgeMeta, utilities: Utilities, apiProperties: ApiProperties)

Minecraft meta containing information about available client- and server releases.

Author

Griefed

Parameters

minecraftManifest

Minecraft manifest file.

injectedForgeMeta

To acquire Forge instances for this MinecraftClient version.

utilities

Commonly used utilities across ServerPackCreator.

apiProperties

ServerPackCreator settings.

Constructors

Link copied to clipboard
constructor(minecraftManifest: File, injectedForgeMeta: ForgeMeta, utilities: Utilities, apiProperties: ApiProperties)

Functions

Link copied to clipboard

Get all available Minecraft releases, both releases and pre-releases or snapshots, in descending order.

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

Get a specific Minecraft client as a MinecraftClient wrapped in an Optional.

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

Get a specific MinecraftServer for the specified Minecraft-version, wrapped in an Optional.

Link copied to clipboard

Check whether a MinecraftClient is available for the specified Minecraft-version.

Link copied to clipboard
fun isServerAvailable(minecraftVersion: String): Boolean

Check whether a MinecraftServer is available for the specified Minecraft-version.

Link copied to clipboard

Get the latest Minecraft release as a MinecraftClient.

Link copied to clipboard

Get the latest Minecraft snapshot as a MinecraftClient.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Depending on whether de.griefed.serverpackcreator.minecraft.snapshots-property is set to true|false this will return either allVersionsArrayDescending or releaseVersionsArrayDescending.

Link copied to clipboard
fun update()

Update the MinecraftClientMeta and MinecraftServerMeta. Usually called after the manifest-files have been refreshed.