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.
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. |
var assetIndex: AssetIndex?
Holds AssetIndex for current install |
|
val environment: EmoEnvironment
EmoEnvironment which dictates which native libraries should be installed, and flags should be used when starting |
|
val extractQueue: ArrayList<Pair<Artifact, Extract>>
Queue for native libraries that should be extracted |
|
var forgeInstaller: File?
Holds the File of the downloaded Forge installer |
|
var forgeManifest: StartManifest?
Holds Forge manifest, if available |
|
val forgeVersion: VersionSelector?
Version selector for Forge, if null, no forge will be installed |
|
val installLocation: Path
Path to install location |
|
val instance: EmoInstance?
Instance used for this install, used in profile creation |
|
var minecraftManifest: IManifest?
Holds the install manifest of Minecraft |
|
var minecraftVersion: VersionSelector
Version selector for Minecraft |
|
val modpack: Modpack?
Selected modpack, used in profile creation |
|
val modpackVersion: ModpackVersion?
Selected modpack version, used in profile creation |
|
val mods: List<Mod>
List of Mod's to install |
|
val name: String?
Name used for this install, used in profile creation |
|
var selectedForgeVersion: String?
Holds the selected Forge version |
|
var selectedMinecraftVersion: Version?
Holds the selected minecraft version, Version object, which contains the url to the manifest |
|
val target: Target
What install to target, Target.Client or Target.Server |
fun getVersionsManifest(): VersionsManifest
Get the current VersionsManifest |
|
fun setVersionsManifest(manifest: VersionsManifest): Unit
Set the current VersionsManifest |