mc-piston-api
Version:
A library to assist with Minecraft's piston-meta API.
18 lines (17 loc) • 546 B
TypeScript
/**
* Downloads a Minecraft version and all of its assets.
*
* @example
* Downloading Minecraft 1.19.3.
* ```ts
* // Import the functions
* import { downloadMinecraft } from "mc-piston-api";
*
* // Download Minecraft!
* await downloadMinecraft("1.19.3", "./minecraft");
* ```
*
* @param versionId - The Minecraft version to download.
* @param root - An optional root directory to download to. Defaults to `./` (the current directory).
*/
export declare const downloadMinecraft: (versionId: string, root?: string) => Promise<void>;