Class ClientDownloader


  • public class ClientDownloader
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void downloadInjectedClient​(java.nio.file.Path destination)
      Downloads the injected client JAR file to the specified destination path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientDownloader

        public ClientDownloader()
    • 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 IOException during the file operation are logged.

        Parameters:
        destination - the Path where the injected client will be downloaded. This must include both the path and the file name of the target file.