Skip to content

@loontail/minecraft-kit v0.8.14 / LaunchOptions

Type alias: LaunchOptions

ts
type LaunchOptions: {
  auth: LaunchAuth;
  extraGameArgs: readonly string[];
  extraJvmArgs: readonly string[];
  features: Readonly<Record<string, boolean>>;
  fullscreen: boolean;
  launcherName: string;
  launcherVersion: string;
  memory: LaunchMemoryOptions;
  resolution: LaunchResolutionOptions;
};

Inputs for kit.launch.compose (and the lower-level composeLaunch helper).

Example

ts
import { AuthModes, type LaunchOptions } from "@loontail/minecraft-kit";

const options: LaunchOptions = {
  auth: { mode: AuthModes.OFFLINE, username: "Steve" },
  memory: { maxMb: 4096 },
  launcherName: "MyLauncher",
  launcherVersion: "1.0.0",
};
const composition = await kit.launch.compose(target, options);

Type declaration

MemberTypeDescription
authLaunchAuth-
extraGameArgsreadonly string[]Extra game args appended after composed game args.
extraJvmArgsreadonly string[]Extra JVM args appended after composed JVM args.
featuresReadonly<Record<string, boolean>>Set of feature flags evaluated by argument rules (e.g. is_demo_user).
fullscreenboolean-
launcherNamestringBrand string injected as ${launcher_name}.
launcherVersionstringVersion string injected as ${launcher_version}.
memoryLaunchMemoryOptions-
resolutionLaunchResolutionOptions-

Source

src/types/launch.ts:52

MIT License