Appearance
@loontail/minecraft-kit v0.8.14 / RepairPlan
Type alias: RepairPlan
ts
type RepairPlan: {
actions: readonly InstallAction[];
directory: string;
target: Target;
targetId: string;
totalActions: number;
totalBytes: number;
};A repair plan is, structurally, an install plan limited to actions needed to fix the issues reported by a previous VerificationResult. The runner is the same.
Example
ts
import type { RepairPlan } from "@loontail/minecraft-kit";
const verification = await kit.verify.minecraft.run(target);
const plan: RepairPlan = await kit.repair.minecraft.plan(target, { from: verification });
console.log(`will redo ${plan.totalActions} actions (${plan.totalBytes} bytes)`);Type declaration
| Member | Type |
|---|---|
actions | readonly InstallAction[] |
directory | string |
target | Target |
targetId | string |
totalActions | number |
totalBytes | number |