Interface LibraryOptions
Change the library host url
🏷️ Properties
checkpointHandler optional
checkpointHandler: CheckpointHandler
The checkpoint handler to save & restore the download progress Inherited from: DownloadBaseOptions.checkpointHandler
Defined in: packages/file-transfer/download.ts:52
checksumValidatorResolver optional
checksumValidatorResolver: (checksum: ChecksumValidatorOptions) => Validator
Defined in: packages/installer/minecraft.ts:119
dispatcher optional
dispatcher: Dispatcher
The undici dispatcher Inherited from: DownloadBaseOptions.dispatcher
Defined in: packages/file-transfer/download.ts:48
headers optional
headers: Record<string, any>
The header of the request Inherited from: DownloadBaseOptions.headers
Defined in: packages/file-transfer/download.ts:40
librariesDownloadConcurrency optional
librariesDownloadConcurrency: number
Control 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.
Defined in: packages/installer/minecraft.ts:117
libraryHost optional
libraryHost: LibraryHost
A more flexiable way to control library download url.
Defined in: packages/installer/minecraft.ts:106
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]
Defined in: packages/installer/minecraft.ts:110
rangePolicy optional
rangePolicy: RangePolicy
The range policy to compute the ranges to download Inherited from: DownloadBaseOptions.rangePolicy
Defined in: packages/file-transfer/download.ts:44
skipHead optional
skipHead: boolean
Inherited from: DownloadBaseOptions.skipHead
Defined in: packages/file-transfer/download.ts:54
skipPrevalidate optional
skipPrevalidate: boolean
Inherited from: DownloadBaseOptions.skipPrevalidate
Defined in: packages/file-transfer/download.ts:58
skipRevalidate optional
skipRevalidate: boolean
Inherited from: DownloadBaseOptions.skipRevalidate
Defined in: packages/file-transfer/download.ts:56
throwErrorImmediately optional
throwErrorImmediately: boolean
Inherited from: ParallelTaskOptions.throwErrorImmediately
Defined in: packages/installer/utils.ts:97