AssetDownloader class
Handles downloading of Minecraft game assets.
Downloads and manages game assets such as textures, sounds, and other resources required for Minecraft to run properly.
- Inheritance
 - 
    
- Object
 - AbstractDownloader
 - AssetDownloader
 
 
Constructors
- AssetDownloader({required String gameDir, DownloadProgressCallback? onDownloadProgress, OperationProgressCallback? onOperationProgress, int progressReportRate = 10})
 - Creates a new asset downloader.
 
Properties
- 
  completionFuture
  → Future<
void>  - 
  Returns a future that completes when all assets have been downloaded.
  no setter
 - hashCode → int
 - 
  The hash code for this object.
  no setterinherited
 - runtimeType → Type
 - 
  A representation of the runtime type of the object.
  no setterinherited
 
Methods
- 
  downloadAssets(
VersionInfo versionInfo, {VersionInfo? inheritsFrom}) → Future< void>  - Downloads all assets required for the specified Minecraft version.
 - 
  downloadFile(
String url, String filePath, {int? expectedSize, String? resourceName}) → Future< File>  - 
  Downloads a file from a URL to a specified path.
  inherited
 - 
  ensureDirectory(
String path) → Future< Directory>  - 
  Ensures a directory exists, creating it if necessary.
  inherited
 - 
  getAssetsDir(
) → String  - 
  Gets the directory for storing game assets.
  inherited
 - 
  getGameDir(
) → String  - 
  Gets the base game directory.
  inherited
 - 
  getLibrariesDir(
) → String  - 
  Gets the directory for storing game libraries.
  inherited
 - 
  normalizePath(
String path) → String  - 
  Normalizes a file path to an absolute path with correct separators.
  inherited
 - 
  noSuchMethod(
Invocation invocation) → dynamic  - 
  Invoked when a nonexistent method or property is accessed.
  inherited
 - 
  reportOperationProgress(
String operationName, int completed, int total, double percentage) → void  - 
  Reports progress of a batch operation.
  inherited
 - 
  toString(
) → String  - 
  A string representation of this object.
  inherited
 
Operators
- 
  operator ==(
Object other) → bool  - 
  The equality operator.
  inherited