Class DownloadList

java.lang.Object
fr.flowarg.flowupdater.download.DownloadList

public class DownloadList extends Object
Represent information about download status. Used with IProgressCallback progress system.
  • Constructor Details

    • DownloadList

      public DownloadList()
  • Method Details

    • init

      public void init()
      This method initializes fields.
    • incrementDownloaded

      public void incrementDownloaded(long bytes)
      This method increments the number of bytes downloaded by the number of bytes passed in parameter.
      Parameters:
      bytes - number of bytes to add to downloaded bytes.
    • getDownloadInfo

      public DownloadList.DownloadInfo getDownloadInfo()
      Get the new API to get information about the progress of the download.
      Returns:
      the instance of DownloadList.DownloadInfo.
    • getDownloadableAssets

      public List<AssetDownloadable> getDownloadableAssets()
      Get the queue that contains all assets to download.
      Returns:
      the queue that contains all assets to download.
    • getDownloadableFiles

      public List<Downloadable> getDownloadableFiles()
      Get the list that contains all downloadable files.
      Returns:
      the list that contains all downloadable files.
    • getExtFiles

      public List<ExternalFile> getExtFiles()
      Get the list that contains all external files.
      Returns:
      the list that contains all external files.
    • getMods

      public List<Mod> getMods()
      Get the list that contains all mods.
      Returns:
      the list that contains all mods.
    • getOptiFine

      public OptiFine getOptiFine()
      Get the OptiFine object.
      Returns:
      the OptiFine object.
    • setOptiFine

      public void setOptiFine(OptiFine optiFine)
      Define the OptiFine object.
      Parameters:
      optiFine - the OptiFine object to define.
    • clear

      public void clear()
      Clear and reset this download list object.