Skip to content

Namespace LibraryInfo

🏭 Functions

resolve

ts
resolve(lib: string | Library | ResolvedLibrary): LibraryInfo

Get the base info of the library from its name

Parameters

  • lib: string | Library | ResolvedLibrary The name of library or the library itself

Return Type

  • LibraryInfo

Defined in: packages/core/version.ts:191

resolveFromPath

ts
resolveFromPath(path: string): LibraryInfo

Resolve the library info from the maven path.

Parameters

  • path: string The library path. It should look like net/minecraftforge/forge/1.0/forge-1.0.jar

Return Type

  • LibraryInfo

Defined in: packages/core/version.ts:148