Appearance
@loontail/minecraft-kit v0.8.14 / planRuntimeInstall
Function: planRuntimeInstall()
ts
function planRuntimeInstall(input): Promise<InstallPlan>Build an install plan that downloads ONLY the Java runtime declared by target.runtime.
Useful when the consumer wants to provision a JRE without touching the rest of the Minecraft installation (no client jar, no libraries, no assets). When target.runtime.installRoot is set the runtime files land in a shared global location instead of the per-target folder.
The returned plan is a regular InstallPlan, so it can be passed to the existing install runner — directory placeholders and symlinks declared by the runtime manifest are still materialized after downloads complete.
Prefer kit.install.runtime.plan(target) over importing this directly.
Parameters
| Parameter | Type |
|---|---|
input | PlanRuntimeInstallInput |
Returns
Promise<InstallPlan>
Example
ts
import { MinecraftKit } from "@loontail/minecraft-kit";
const kit = new MinecraftKit();
const plan = await kit.install.runtime.plan(target);
await kit.install.runtime.run(plan);