Skip to content

@loontail/minecraft-kit v0.8.14 / PlanStandaloneRuntimeInstallInput

Type alias: PlanStandaloneRuntimeInstallInput

ts
type PlanStandaloneRuntimeInstallInput: {
  cache: MetadataCache;
  directory: string;
  http: HttpClient;
  id: string;
  runtime: ResolvedRuntime;
  signal: AbortSignal;
};

Inputs to planStandaloneRuntimeInstall.

Example

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

const kit = new MinecraftKit();
const runtime = await kit.versions.runtime.resolve({ system: detectSystem() });
const input: Omit<PlanStandaloneRuntimeInstallInput, "http" | "cache"> = {
  id: "shared-jre-21",
  directory: "/opt/minecraft/runtimes",
  runtime,
};
const plan = await kit.install.runtime.standalonePlan(input);

Type declaration

MemberTypeDescription
cacheMetadataCache-
directorystringWhere the runtime files live. Used as directory if runtime.installRoot is unset.
httpHttpClient-
idstring-
runtimeResolvedRuntime-
signalAbortSignal-

Source

src/install/runtime-install.ts:87

MIT License