1 | import { MinecraftLocation } from "@xmcl/core";
|
2 | import { Timestamped } from "./http/fetch";
|
3 | import { InstallOptions } from "./utils";
|
4 | export declare const YARN_MAVEN_URL = "https://maven.fabricmc.net/net/fabricmc/yarn/maven-metadata.xml";
|
5 | export declare const LOADER_MAVEN_URL = "https://maven.fabricmc.net/net/fabricmc/fabric-loader/maven-metadata.xml";
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export interface FabricYarnVersionList extends Timestamped {
|
11 | versions: FabricArtifactVersion[];
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export interface FabricLoaderVersionList extends Timestamped {
|
18 | versions: FabricArtifactVersion[];
|
19 | }
|
20 | export interface FabricArtifactVersion {
|
21 | gameVersion?: string;
|
22 | separator?: string;
|
23 | build?: number;
|
24 | maven: string;
|
25 | version: string;
|
26 | stable: boolean;
|
27 | }
|
28 | export interface FabricArtifacts {
|
29 | mappings: FabricArtifactVersion[];
|
30 | loader: FabricArtifactVersion[];
|
31 | }
|
32 | export interface FabricLoaderArtifact {
|
33 | loader: FabricArtifactVersion;
|
34 | intermediary: FabricArtifactVersion;
|
35 | launcherMeta: {
|
36 | version: number;
|
37 | libraries: {
|
38 | client: {
|
39 | name: string;
|
40 | url: string;
|
41 | }[];
|
42 | common: {
|
43 | name: string;
|
44 | url: string;
|
45 | }[];
|
46 | server: {
|
47 | name: string;
|
48 | url: string;
|
49 | }[];
|
50 | };
|
51 | mainClass: {
|
52 | client: string;
|
53 | server: string;
|
54 | };
|
55 | };
|
56 | }
|
57 | export declare const DEFAULT_FABRIC_API = "https://meta.fabricmc.net/v2";
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | export declare function getFabricArtifacts(remote?: string): Promise<FabricArtifacts>;
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | export declare function getYarnArtifactList(remote?: string): Promise<FabricArtifactVersion[]>;
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 | export declare function getYarnArtifactListFor(minecraft: string, remote?: string): Promise<FabricArtifactVersion[]>;
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 | export declare function getLoaderArtifactList(remote?: string): Promise<FabricArtifactVersion[]>;
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 | export declare function getLoaderArtifactListFor(minecraft: string, remote?: string): Promise<FabricLoaderArtifact[]>;
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 | export declare function getFabricLoaderArtifact(minecraft: string, loader: string, remote?: string): Promise<FabricLoaderArtifact>;
|
98 |
|
99 |
|
100 |
|
101 |
|
102 | export declare function getYarnVersionListFromXML(option?: {
|
103 | |
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 | original?: FabricYarnVersionList;
|
110 | |
111 |
|
112 |
|
113 | remote?: string;
|
114 | }): Promise<FabricYarnVersionList>;
|
115 |
|
116 |
|
117 |
|
118 |
|
119 | export declare function getLoaderVersionListFromXML(option: {
|
120 | |
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 | original?: FabricLoaderVersionList;
|
127 | |
128 |
|
129 |
|
130 | remote?: string;
|
131 | }): Promise<FabricLoaderVersionList>;
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
|
138 |
|
139 |
|
140 | export declare function installFabricYarnAndLoader(yarnVersion: string, loaderVersion: string, minecraft: MinecraftLocation, options?: InstallOptions): Promise<string>;
|
141 | export interface FabricInstallOptions extends InstallOptions {
|
142 | side?: "client" | "server";
|
143 | yarnVersion?: string | FabricArtifactVersion;
|
144 | }
|
145 |
|
146 |
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 |
|
153 |
|
154 | export declare function installFabric(loader: FabricLoaderArtifact, minecraft: MinecraftLocation, options?: FabricInstallOptions): Promise<string>;
|
155 |
|
\ | No newline at end of file |