Skip to content

@loontail/minecraft-kit / PlanStandaloneRuntimeInstallInput

Type Alias: PlanStandaloneRuntimeInstallInput

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

Defined in: src/install/runtime-install.ts:87

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.planStandalone(input);

Properties

PropertyModifierTypeDescriptionDefined in
cachereadonlyMetadataCache-src/install/runtime-install.ts:93
directoryreadonlystringWhere the runtime files live. Used as directory if runtime.installRoot is unset.src/install/runtime-install.ts:90
httpreadonlyHttpClient-src/install/runtime-install.ts:92
idreadonlystring-src/install/runtime-install.ts:88
runtimereadonlyResolvedRuntime-src/install/runtime-install.ts:91
signal?readonlyAbortSignal-src/install/runtime-install.ts:94

MIT License