Appearance
@loontail/minecraft-kit v0.8.14 / InstallRunOptions
Type alias: InstallRunOptions
ts
type InstallRunOptions: OperationOptions & {
actionCategories: ReadonlySet<DownloadAction["category"]>;
pauseController: PauseController;
};Options accepted by install.run (and install.runtime.run).
Example
ts
import { PauseController, type InstallRunOptions } from "@loontail/minecraft-kit";
const pauseController = new PauseController();
const controller = new AbortController();
const options: InstallRunOptions = {
pauseController,
signal: controller.signal,
onEvent: (e) => console.log(e.type),
};
await kit.install.run(plan, options);Type declaration
| Member | Type | Description |
|---|---|---|
actionCategories | ReadonlySet<DownloadAction["category"]> | Filter the run to a subset of action categories. Useful for partial reinstalls (e.g. assets-only). When omitted, every action in the plan runs. Example import { DownloadCategories } from "@loontail/minecraft-kit"; |
pauseController | PauseController | Cooperative pause/resume primitive — see PauseController. The runner checks the pause state at every stage boundary and between download chunks. |