Appearance
@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
| Member | Type | Description |
|---|---|---|
cache | MetadataCache | - |
directory | string | Where the runtime files live. Used as directory if runtime.installRoot is unset. |
http | HttpClient | - |
id | string | - |
runtime | ResolvedRuntime | - |
signal | AbortSignal | - |