Class CurseModPackInfo

java.lang.Object
fr.flowarg.flowupdater.download.json.CurseFileInfo
fr.flowarg.flowupdater.download.json.CurseModPackInfo

public class CurseModPackInfo extends CurseFileInfo
This class represents a mod pack file in the CurseForge API.
  • Constructor Details

    • CurseModPackInfo

      public CurseModPackInfo(int projectID, int fileID, boolean installExtFiles, String... excluded)
      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

      public CurseModPackInfo(String url, boolean installExtFiles, String... excluded)
      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 the installExtFiles option.
      Returns:
      the installExtFiles option.
    • getExcluded

      public String[] getExcluded()
      Get the excluded mods.
      Returns:
      the excluded mods.
    • getUrl

      public String 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.