Appearance
@loontail/minecraft-kit v0.8.14 / RuntimeSystem
Type alias: RuntimeSystem
ts
type RuntimeSystem: {
arch: Architecture;
os: OperatingSystem;
osVersion: string;
};Identifies the host system for the launcher. All resolvers consume this object to pick the right artifacts (libraries, natives, runtime).
Example
ts
import { detectSystem, type RuntimeSystem } from "@loontail/minecraft-kit";
const system: RuntimeSystem = detectSystem();
console.log(`host: ${system.os}/${system.arch} (release ${system.osVersion})`);Type declaration
| Member | Type | Description |
|---|---|---|
arch | Architecture | CPU architecture (mojang naming). |
os | OperatingSystem | OS identifier (mojang naming). |
osVersion | string | OS version string from os.release(). Used to evaluate library os.version regex rules. |