Skip to content

Interface LibraryOptions

Change the library host url

🏷️ Properties

agent

ts
agent: DownloadAgent

The download agent Inherited from: DownloadBaseOptions.agent

Defined in: packages/file-transfer/download.ts:20

checksumValidatorResolver

ts
checksumValidatorResolver: Function

Defined in: packages/installer/minecraft.ts:117

headers

ts
headers: Record<string, any>

The header of the request Inherited from: DownloadBaseOptions.headers

Defined in: packages/file-transfer/download.ts:16

librariesDownloadConcurrency

ts
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:115

libraryHost

ts
libraryHost: LibraryHost

A more flexiable way to control library download url.

Defined in: packages/installer/minecraft.ts:104

mavenHost

ts
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:108

skipPrevalidate

ts
skipPrevalidate: boolean

Should skip prevalidate the file Inherited from: DownloadBaseOptions.skipPrevalidate

Defined in: packages/file-transfer/download.ts:30

skipRevalidate

ts
skipRevalidate: boolean

Re-validate the file after download success Inherited from: DownloadBaseOptions.skipRevalidate

Defined in: packages/file-transfer/download.ts:25

throwErrorImmediately

ts
throwErrorImmediately: boolean

Inherited from: ParallelTaskOptions.throwErrorImmediately

Defined in: packages/installer/utils.ts:95

Released under the MIT License.