Skip to content

@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

MemberTypeDescription
archArchitectureCPU architecture (mojang naming).
osOperatingSystemOS identifier (mojang naming).
osVersionstringOS version string from os.release(). Used to evaluate library os.version regex rules.

Source

src/types/system.ts:75

MIT License