@xmcl/installer
Version:
The installers of Minecraft/Forge/Fabric/Liteloader/Quilt
53 lines • 2.13 kB
TypeScript
import { MinecraftLocation, Version } from '@xmcl/core';
import { InstallOptions, SpawnJavaOptions } from './utils';
export interface InstallOptifineOptions extends InstallOptions, SpawnJavaOptions {
/**
* Use "optifine.OptiFineForgeTweaker" instead of "optifine.OptiFineTweaker" for tweakClass.
*
* If you want to install upon forge, you should use this.
*/
useForgeTweaker?: boolean;
}
/**
* Generate the optifine version json from provided info.
* @param editionRelease The edition + release with _
* @param minecraftVersion The minecraft version
* @param launchWrapperVersion The launch wrapper version
* @param options The install options
* @beta Might be changed and don't break the major version
*/
export declare function generateOptifineVersion(editionRelease: string, minecraftVersion: string, launchWrapperVersion?: string, options?: InstallOptifineOptions): Version;
/**
* Install optifine by optifine installer
*
* @param installer The installer jar file path
* @param minecraft The minecraft location
* @param options The option to install
* @beta Might be changed and don't break the major version
* @throws {@link BadOptifineJarError}
*/
export declare function installOptifine(installer: string, minecraft: MinecraftLocation, options?: InstallOptifineOptions): Promise<string>;
export declare class BadOptifineJarError extends Error {
optifine: string;
/**
* What entry in jar is missing
*/
entry: string;
constructor(optifine: string,
/**
* What entry in jar is missing
*/
entry: string);
error: string;
}
/**
* Install optifine by optifine installer task
*
* @param installer The installer jar file path
* @param minecraft The minecraft location
* @param options The option to install
* @beta Might be changed and don't break the major version
* @throws {@link BadOptifineJarError}
*/
export declare function installOptifineTask(installer: string, minecraft: MinecraftLocation, options?: InstallOptifineOptions): import("@xmcl/task").TaskRoutine<string>;
//# sourceMappingURL=optifine.d.ts.map