Class ModrinthObject<ModelStatic, ObjectResult, ObjectSource>
Constructors
constructor
- new ModrinthObject<ModelStatic, ObjectResult, ObjectSource>(modrinth: Modrinth, source: ObjectSource): ModrinthObject<ModelStatic, ObjectResult, ObjectSource>
-
Type parameters
-
ModelStatic: ModrinthStaticModel<ObjectResult, ObjectSource, ModelStatic>
-
ObjectResult: ModrinthObject<ModelStatic, ObjectResult, ObjectSource, ObjectResult>
-
ObjectSource
Parameters
Returns ModrinthObject<ModelStatic, ObjectResult, ObjectSource>
Properties
object_url
object_url: string
resource_url
resource_url: string
Methods
get
- get(): Promise<ObjectResult>
-
Returns Promise<ObjectResult>
getObjectLocation
- getObjectLocation(): string
getResourceLocation
- getResourceLocation(): string