emo / me.eater.emo / EmoContext

EmoContext

class EmoContext

Data object which is used in the installer workflow, carries temporary data used in the installer use EmoInstance.getEmoContextForModpack for initialisation. At minimal only minecraftVersion and installLocation are needed.

Constructors

<init>

EmoContext(forgeVersion: VersionSelector? = null, installLocation: Path, minecraftVersion: VersionSelector, environment: EmoEnvironment = EmoEnvironment(), target: Target = Target.Client, mods: List<Mod> = listOf(), modpack: Modpack? = null, modpackVersion: ModpackVersion? = null, instance: EmoInstance? = null, name: String? = null)

Data object which is used in the installer workflow, carries temporary data used in the installer use EmoInstance.getEmoContextForModpack for initialisation. At minimal only minecraftVersion and installLocation are needed.

Properties

assetIndex

var assetIndex: AssetIndex?

Holds AssetIndex for current install

environment

val environment: EmoEnvironment

EmoEnvironment which dictates which native libraries should be installed, and flags should be used when starting

extractQueue

val extractQueue: ArrayList<Pair<Artifact, Extract>>

Queue for native libraries that should be extracted

forgeInstaller

var forgeInstaller: File?

Holds the File of the downloaded Forge installer

forgeManifest

var forgeManifest: StartManifest?

Holds Forge manifest, if available

forgeVersion

val forgeVersion: VersionSelector?

Version selector for Forge, if null, no forge will be installed

installLocation

val installLocation: Path

Path to install location

instance

val instance: EmoInstance?

Instance used for this install, used in profile creation

minecraftManifest

var minecraftManifest: IManifest?

Holds the install manifest of Minecraft

minecraftVersion

var minecraftVersion: VersionSelector

Version selector for Minecraft

modpack

val modpack: Modpack?

Selected modpack, used in profile creation

modpackVersion

val modpackVersion: ModpackVersion?

Selected modpack version, used in profile creation

mods

val mods: List<Mod>

List of Mod's to install

name

val name: String?

Name used for this install, used in profile creation

selectedForgeVersion

var selectedForgeVersion: String?

Holds the selected Forge version

selectedMinecraftVersion

var selectedMinecraftVersion: Version?

Holds the selected minecraft version, Version object, which contains the url to the manifest

target

val target: Target

What install to target, Target.Client or Target.Server

Functions

getVersionsManifest

fun getVersionsManifest(): VersionsManifest

Get the current VersionsManifest

setVersionsManifest

fun setVersionsManifest(manifest: VersionsManifest): Unit

Set the current VersionsManifest