Interface InstallForgeOptions
The options to install forge.
🏷️ Properties
checkpointHandler optional
checkpointHandler: CheckpointHandlerThe checkpoint handler to save & restore the download progress Inherited from: InstallProfileOption.checkpointHandler
Defined in: packages/file-transfer/download.ts:52
checksumValidatorResolver optional
checksumValidatorResolver: (checksum: ChecksumValidatorOptions) => ValidatorInherited from: InstallProfileOption.checksumValidatorResolver
Defined in: packages/installer/minecraft.ts:120
dispatcher optional
dispatcher: DispatcherThe undici dispatcher Inherited from: InstallProfileOption.dispatcher
Defined in: packages/file-transfer/download.ts:48
handler optional
handler: (postProcessor: PostProcessor) => Promise<boolean>Custom handlers to handle the post processor Inherited from: InstallProfileOption.handler
Defined in: packages/installer/profile.ts:72
headers optional
headers: Record<string, any>The header of the request Inherited from: InstallProfileOption.headers
Defined in: packages/file-transfer/download.ts:40
inheritsFrom optional
inheritsFrom: stringWhen you want to install a version over another one.
Like, you want to install liteloader over a forge version. You should fill this with that forge version id. Inherited from: InstallOptions.inheritsFrom
Defined in: packages/installer/utils.ts:109
java optional
java: stringNew forge (>=1.13) require java to install. Can be a executor or java executable path. Inherited from: InstallProfileOption.java
Defined in: packages/installer/profile.ts:82
librariesDownloadConcurrency optional
librariesDownloadConcurrency: numberControl how many libraries download task should run at the same time. It will override the maxConcurrencyOption if this is presented.
This will be ignored if you have your own downloader assigned. Inherited from: InstallProfileOption.librariesDownloadConcurrency
Defined in: packages/installer/minecraft.ts:118
libraryHost optional
libraryHost: LibraryHostA more flexiable way to control library download url. Inherited from: InstallProfileOption.libraryHost
Defined in: packages/installer/minecraft.ts:107
mavenHost optional
mavenHost: string | string[]The alterative maven host to download library. It will try to use these host from the [0] to the [maven.length - 1]Inherited from: InstallProfileOption.mavenHost
Defined in: packages/installer/minecraft.ts:111
onPostProcessFailed optional
onPostProcessFailed: (proc: PostProcessor, jar: string, classPaths: string, mainClass: string, args: string[], error: unknown) => voidInherited from: InstallProfileOption.onPostProcessFailed
Defined in: packages/installer/profile.ts:74
onPostProcessSuccess optional
onPostProcessSuccess: (proc: PostProcessor, jar: string, classPaths: string, mainClass: string, args: string[]) => voidInherited from: InstallProfileOption.onPostProcessSuccess
Defined in: packages/installer/profile.ts:75
rangePolicy optional
rangePolicy: RangePolicyThe range policy to compute the ranges to download Inherited from: InstallProfileOption.rangePolicy
Defined in: packages/file-transfer/download.ts:44
side optional
side: "server" | "client"The installation side
Defined in: packages/installer/forge.ts:144
skipHead optional
skipHead: booleanInherited from: InstallProfileOption.skipHead
Defined in: packages/file-transfer/download.ts:54
skipPrevalidate optional
skipPrevalidate: booleanInherited from: InstallProfileOption.skipPrevalidate
Defined in: packages/file-transfer/download.ts:58
skipRevalidate optional
skipRevalidate: booleanInherited from: InstallProfileOption.skipRevalidate
Defined in: packages/file-transfer/download.ts:56
spawn optional
spawn: (command: string, args?: readonly string[], options?: SpawnOptions) => ChildProcessThe spawn process function. Used for spawn the java process at the end.
By default, it will be the spawn function from "child_process" module. You can use this option to change the 3rd party spawn like cross-spawnInherited from: InstallProfileOption.spawn
Defined in: packages/installer/utils.ts:50
throwErrorImmediately optional
throwErrorImmediately: booleanInherited from: InstallProfileOption.throwErrorImmediately
Defined in: packages/installer/utils.ts:97
versionId optional
versionId: stringOverride the newly installed version id.
If this is absent, the installed version id will be either generated or provided by installer. Inherited from: InstallOptions.versionId
Defined in: packages/installer/utils.ts:116