Appearance
@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
| Member | Type | Description |
|---|---|---|
component | string | Mojang component name (e.g. java-runtime-gamma). |
installRoot | string | Absolute path containing component directories. When set, runtime files for component live at <installRoot>/<component>/.... When unset, defaults to <target.directory>/runtime. |
majorVersion | number | Major Java version when known. |
manifestSha1 | string | SHA-1 of the file manifest. |
manifestUrl | string | URL of the per-component file manifest. |
platformKey | string | Platform key inside the runtime index (e.g. windows-x64). |
system | RuntimeSystem | - |
versionName | string | Version name (e.g. "17.0.8"). |