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

2 KiB

packwizjs


packwizjs / provider / ModrinthProvider

Class: ModrinthProvider

Defined in: provider.ts:25

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

Extends

Constructors

new ModrinthProvider()

new ModrinthProvider(hash, hashFormat, url, modId, versionId): ModrinthProvider

Defined in: provider.ts:34

Creates a new ModrinthProvider instance.

Parameters

hash

string

A hash string used for identification or verification.

hashFormat

HashFormat

The format of the provided hash.

url

Resource

A Resource instance representing the URL.

modId

string

The identifier for the Modrinth mod.

versionId

string

The version identifier for the mod.

Returns

ModrinthProvider

Overrides

UrlProvider.constructor

Properties

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


modId

modId: string

Defined in: provider.ts:38

The identifier for the Modrinth mod.


url

url: Resource

Defined in: provider.ts:17

A Resource instance representing the URL.

Inherited from

UrlProvider.url


versionId

versionId: string

Defined in: provider.ts:39

The version identifier for the mod.