TheRandomLabs / CurseAPI

A Java library for handling interactions with CurseForge.
MIT License
30 stars 3 forks source link

[Suggestion] convenience method for getting serverPackFile URL/ID if file has one? #18

Closed ROMVoid95 closed 4 years ago

ROMVoid95 commented 4 years ago

Was looking for this, had a CurseFile instance and if i skipped over it then disregard this lol. Not sure if its doable since this can be different depending on if file/project is a Mod or Modpack. i do know the API has the info using this endpoint https://addons-ecs.forgesvc.net/api/v2/addon/336617/file/2845309 serverPackFileId

TheRandomLabs commented 4 years ago

Ah, I overlooked this field. Thank you!

ROMVoid95 commented 4 years ago

all good bud

TheRandomLabs commented 4 years ago

CurseFile#alternateFileID() and CurseFile#alternateFile() should work for server packs. :)