PackwizJS/docs/provider/classes/CurseForgeProvider.md
2025-02-09 10:00:02 -06:00

2.2 KiB

packwizjs


packwizjs / provider / CurseForgeProvider

Class: CurseForgeProvider

Defined in: provider.ts:77

URL provider for handling CurseForge-related URLs. Extends the UrlProvider with CurseForge-specific properties.

Extends

Constructors

new CurseForgeProvider()

new CurseForgeProvider(hash, hashFormat, mode, fileId, projectId): CurseForgeProvider

Defined in: provider.ts:86

Creates a new CurseForgeProvider instance.

Parameters

hash

string

A hash string used for identification or verification.

hashFormat

HashFormat

The format of the provided hash.

mode

string

The mode indicating how the CurseForge file should be accessed.

fileId

number

The identifier for the file on CurseForge.

projectId

number

The identifier for the project on CurseForge.

Returns

CurseForgeProvider

Overrides

UrlProvider.constructor

Properties

fileId

fileId: number

Defined in: provider.ts:90

The identifier for the file on CurseForge.


hash

hash: string

Defined in: provider.ts:15

A hash string used for identifying or verifying the resource.

Inherited from

UrlProvider.hash


hashFormat

hashFormat: HashFormat

Defined in: provider.ts:16

The format of the provided hash.

Inherited from

UrlProvider.hashFormat


mode

mode: string

Defined in: provider.ts:89

The mode indicating how the CurseForge file should be accessed.


projectId

projectId: number

Defined in: provider.ts:91

The identifier for the project on CurseForge.


url

url: Resource

Defined in: provider.ts:17

A Resource instance representing the URL.

Inherited from

UrlProvider.url