Appearance
@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
| Member | Type | Description |
|---|---|---|
auth | LaunchAuth | - |
classpath | readonly string[] | - |
directory | string | - |
env | Readonly<Record<string, string>> | Environment variables to set on the spawned process. |
gameArgs | readonly string[] | - |
javaPath | string | - |
jvmArgs | readonly string[] | - |
mainClass | string | - |
nativesDirectory | string | - |
targetId | string | - |
workingDirectory | string | Spawn working directory (almost always equal to directory). |