Class CurseModPackInfo
java.lang.Object
fr.flowarg.flowupdater.download.json.CurseFileInfo
fr.flowarg.flowupdater.download.json.CurseModPackInfo
This class represents a mod pack file in the CurseForge API.
-
Constructor Summary
ConstructorsConstructorDescriptionCurseModPackInfo(int projectID, int fileID, boolean installExtFiles, String... excluded) Construct a new CurseModPackInfo object.CurseModPackInfo(String url, boolean installExtFiles, String... excluded) Construct a new CurseModPackInfo object. -
Method Summary
Methods inherited from class fr.flowarg.flowupdater.download.json.CurseFileInfo
equals, getFileID, getFilesFromJson, getFilesFromJson, getProjectID, hashCode
-
Constructor Details
-
CurseModPackInfo
Construct a new CurseModPackInfo object.- Parameters:
projectID- the ID of the project.fileID- the ID of the file.installExtFiles- should install external files like config and resource packs.excluded- mods to exclude.
-
CurseModPackInfo
Construct a new CurseModPackInfo object.- Parameters:
url- the url of the custom mod pack endpoint.installExtFiles- should install external files like config and resource packs.excluded- mods to exclude.
-
-
Method Details
-
isInstallExtFiles
public boolean isInstallExtFiles()Get theinstallExtFilesoption.- Returns:
- the
installExtFilesoption.
-
getExcluded
Get the excluded mods.- Returns:
- the excluded mods.
-
getUrl
Get the url of the mod pack endpoint. Should be of the form: { "data": { "fileName": "modpack.zip", "downloadUrl": "https://site.com/modpack.zip", "fileLength": 123456789, "hashes": [ { "value": "a02b0499589bc6982fced96dcc85c3b3e33af119", "algo": 1 } ] } }- Returns:
- the url of the mod pack endpoint if it's not from CurseForge's servers.
-