classinternalSource
public class AssetDownloader

Constructors

public AssetDownloader(int downloadThreads)
Parameters
downloadThreadsint

Methods

public void downloadAssets(String version, Path assetsDir, LaunchContext context)
Parameters
versionString
assetsDirPath
contextLaunchContext
public void downloadAssets(
    String version,
    Path assetsDir,
    Consumer<Double> progressConsumer,
    LaunchContext context
)
Downloads the assets
Parameters
versionStringThe game version
assetsDirPathThe directory the assets should be downloaded to
progressConsumerConsumer<Double>
contextLaunchContext