Skip to content

@loontail/minecraft-kit v0.8.14 / LaunchComposition

Type alias: LaunchComposition

ts
type LaunchComposition: {
  auth: LaunchAuth;
  classpath: readonly string[];
  directory: string;
  env: Readonly<Record<string, string>>;
  gameArgs: readonly string[];
  javaPath: string;
  jvmArgs: readonly string[];
  mainClass: string;
  nativesDirectory: string;
  targetId: string;
  workingDirectory: string;
};

Fully composed launch command, ready to be passed to kit.launch.run.

Example

ts
import type { LaunchComposition } from "@loontail/minecraft-kit";

const composition: LaunchComposition = await kit.launch.compose(target, { auth });
console.log(`${composition.javaPath} ${composition.mainClass} (${composition.classpath.length} jars)`);
const session = kit.launch.run(composition);

Type declaration

MemberTypeDescription
authLaunchAuth-
classpathreadonly string[]-
directorystring-
envReadonly<Record<string, string>>Environment variables to set on the spawned process.
gameArgsreadonly string[]-
javaPathstring-
jvmArgsreadonly string[]-
mainClassstring-
nativesDirectorystring-
targetIdstring-
workingDirectorystringSpawn working directory (almost always equal to directory).

Source

src/types/launch.ts:81

MIT License