emo / me.eater.emo.emo / Profile

Profile

data class Profile

Class that holds info about a profile, used for serialisation

Constructors

<init>

Profile(location: String, name: String, modpack: Modpack, modpackVersion: ModpackVersion, createdOn: Instant = Instant.MIN, lastTouched: Instant = if (createdOn == Instant.MIN) Instant.now() else createdOn)

Class that holds info about a profile, used for serialisation

Properties

createdOn

val createdOn: Instant

Time created

lastTouched

var lastTouched: Instant

Time last touched

location

val location: String

Location where this profile is located

modpack

val modpack: Modpack

Name of modpack of this profile

modpackVersion

val modpackVersion: ModpackVersion

Modpack version

name

val name: String

Name of profile

Functions

getExecutor

fun getExecutor(account: Account): MinecraftExecutor

Get MinecraftExecutor for this profile with account