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.
43 lines (42 loc) • 1.13 kB
TypeScript
import { EventEmitter } from "node:events";
export interface NativesDownloaderOptions {
version: string;
root: string;
concurry?: number;
maxRetries?: number;
}
export declare class NativesDownloader extends EventEmitter {
private version;
private root;
private concurry;
private maxRetries;
private limiter;
private paused;
private stopped;
private pendingQueue;
private runningTasks;
private doneEmitted;
private unzipper;
private downloadedBytes;
constructor(opts: NativesDownloaderOptions);
start(): Promise<void>;
pause(): void;
resume(): void;
stop(): void;
getTotalBytes(): Promise<number>;
private processQueue;
private checkDone;
private downloadAndExtractNative;
private downloadFile;
private extractNative;
private retryOrFail;
private getOS;
private getArchitecture;
private shouldIncludeLibrary;
private getNativeLibraries;
private matchesArchitecture;
private getNativeDownloadInfo;
private fetchVersionManifest;
private downloadJSON;
getDownloadedBytes(): number;
}