UNPKG

minecraft-core-master

Version:

Núcleo avanzado para launchers de Minecraft. Descarga, instala y ejecuta versiones de Minecraft, assets, librerías, Java y loaders de forma automática y eficiente.

23 lines (22 loc) 631 B
import { EventEmitter } from "node:events"; export interface RuntimeDownloaderOptions { version: string; root: string; concurrency?: number; maxRetries?: number; } export declare class RuntimeDownloader extends EventEmitter { private options; private versionManifestUrl; private javaAllUrl; private taskLimiter; private downloadedBytes; constructor(options: RuntimeDownloaderOptions); getTotalBytes(): Promise<number>; start(): Promise<void>; private downloadFileWithRetry; private getJavaManifest; private getPlatform; private fetchJson; private downloadFile; }