Package fr.flowarg.flowupdater.download
Class DownloadList
java.lang.Object
fr.flowarg.flowupdater.download.DownloadList
Represent information about download status. Used with
IProgressCallback progress system.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear and reset this download list object.Get the queue that contains all assets to download.Get the list that contains all downloadable files.Get the new API to get information about the progress of the download.Get the list that contains all external files.getMods()Get the list that contains all mods.Get the OptiFine object.voidincrementDownloaded(long bytes) This method increments the number of bytes downloaded by the number of bytes passed in parameter.voidinit()This method initializes fields.voidsetOptiFine(OptiFine optiFine) Define the OptiFine object.
-
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
Get the new API to get information about the progress of the download.- Returns:
- the instance of
DownloadList.DownloadInfo.
-
getDownloadableAssets
Get the queue that contains all assets to download.- Returns:
- the queue that contains all assets to download.
-
getDownloadableFiles
Get the list that contains all downloadable files.- Returns:
- the list that contains all downloadable files.
-
getExtFiles
Get the list that contains all external files.- Returns:
- the list that contains all external files.
-
getMods
Get the list that contains all mods.- Returns:
- the list that contains all mods.
-
getOptiFine
Get the OptiFine object.- Returns:
- the OptiFine object.
-
setOptiFine
Define the OptiFine object.- Parameters:
optiFine- the OptiFine object to define.
-
clear
public void clear()Clear and reset this download list object.
-