classinternalSource
public class ClientDownloader

Constructors

public ClientDownloader()

Methods

public void downloadClient(String version, Path path, LaunchContext context) throws HttpException, IOException
Parameters
versionStringThe game version
pathPathThe full path to the jar including the file name, for example /home/dervarex/client.jar
contextLaunchContextThe launch context
Throws
HttpException
IOException
public void downloadClient(
    String version,
    Path path,
    Consumer<Double> progressConsumer,
    LaunchContext context
) throws HttpException, IOException
Parameters
versionString
pathPath
progressConsumerConsumer<Double>
contextLaunchContext
Throws
HttpException
IOException