Skip to content

@loontail/minecraft-kit v0.8.14 / ResolvedRuntime

Type alias: ResolvedRuntime

ts
type ResolvedRuntime: {
  component: string;
  installRoot: string;
  majorVersion: number;
  manifestSha1: string;
  manifestUrl: string;
  platformKey: string;
  system: RuntimeSystem;
  versionName: string;
};

Resolved runtime ready to install or launch with.

Example

ts
import { detectSystem, type ResolvedRuntime } from "@loontail/minecraft-kit";

const runtime: ResolvedRuntime = await kit.versions.runtime.resolve({ system: detectSystem() });
console.log(`${runtime.component} ${runtime.versionName} on ${runtime.platformKey}`);

Type declaration

MemberTypeDescription
componentstringMojang component name (e.g. java-runtime-gamma).
installRootstringAbsolute path containing component directories. When set, runtime files for component live at <installRoot>/<component>/.... When unset, defaults to <target.directory>/runtime.
majorVersionnumberMajor Java version when known.
manifestSha1stringSHA-1 of the file manifest.
manifestUrlstringURL of the per-component file manifest.
platformKeystringPlatform key inside the runtime index (e.g. windows-x64).
systemRuntimeSystem-
versionNamestringVersion name (e.g. "17.0.8").

Source

src/types/runtime.ts:184

MIT License