Package com.kraken.api.core.mapping
Class ClientDownloader
- java.lang.Object
-
- com.kraken.api.core.mapping.ClientDownloader
-
public class ClientDownloader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ClientDownloader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddownloadInjectedClient(java.nio.file.Path destination)Downloads the injected client JAR file to the specified destination path.
-
-
-
Method Detail
-
downloadInjectedClient
public static void downloadInjectedClient(java.nio.file.Path destination)
Downloads the injected client JAR file to the specified destination path. If the destination file already exists, the method skips the download process.The method determines the required RuneLite version, constructs the URL for the injected client, and downloads the file to the specified location. If the RuneLite version is a @SNAPSHOT version, it handles the version accordingly by removing the @SNAPSHOT suffix. Unsupported versions will result in an exception.
Exceptions such as
IOExceptionduring the file operation are logged.- Parameters:
destination- thePathwhere the injected client will be downloaded. This must include both the path and the file name of the target file.
-
-