1 | import { MinecraftLocation, Version } from "@xmcl/core";
|
2 | import { InstallOptions, SpawnJavaOptions } from "./utils";
|
3 | export interface InstallOptifineOptions extends InstallOptions {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 | useForgeTweaker?: boolean;
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function generateOptifineVersion(editionRelease: string, minecraftVersion: string, launchWrapperVersion?: string, options?: InstallOptifineOptions): Version;
|
20 | export interface InstallOptifineOptions extends InstallOptions, SpawnJavaOptions {
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare function installOptifine(installer: string, minecraft: MinecraftLocation, options?: InstallOptifineOptions): Promise<string>;
|
32 | export declare class BadOptifineJarError extends Error {
|
33 | optifine: string;
|
34 | |
35 |
|
36 |
|
37 | entry: string;
|
38 | constructor(optifine: string,
|
39 | |
40 |
|
41 |
|
42 | entry: string);
|
43 | error: string;
|
44 | }
|
45 | /**
|
46 | * Install optifine by optifine installer task
|
47 | *
|
48 | * @param installer The installer jar file path
|
49 | * @param minecraft The minecraft location
|
50 | * @param options The option to install
|
51 | * @beta Might be changed and don't break the major version
|
52 | * @throws {@link BadOptifineJarError}
|
53 | */
|
54 | export declare function installOptifineTask(installer: string, minecraft: MinecraftLocation, options?: InstallOptifineOptions): import("@xmcl/task").TaskRoutine<string>;
|
55 |
|
\ | No newline at end of file |