Appearance
@loontail/minecraft-kit v0.8.14 / ExtractNativeAction
Type alias: ExtractNativeAction
ts
type ExtractNativeAction: {
destination: string;
exclude: readonly string[];
kind: typeof InstallActionKinds.EXTRACT_NATIVE;
source: string;
};A native extraction step. Source jar must already exist on disk.
Example
ts
import { InstallActionKinds, type ExtractNativeAction } from "@loontail/minecraft-kit";
const extracts = plan.actions.filter(
(a): a is ExtractNativeAction => a.kind === InstallActionKinds.EXTRACT_NATIVE,
);
for (const e of extracts) console.log(`unzip ${e.source} → ${e.destination}`);Type declaration
| Member | Type |
|---|---|
destination | string |
exclude | readonly string[] |
kind | typeof InstallActionKinds.EXTRACT_NATIVE |
source | string |