Class Application

java.lang.Object
rsb.botLauncher.Application

public class Application extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Adds a bot to the bot array
    static RuneLite
    Returns the Bot for any object loaded in its client.
    static RuneLite[]
    Retrieves all running bot instances
    static void
    main(String[] args)
    Parses the command-line arguments and then passes the parsed arguments in the form of the parser, optionSpecs, and options to a constructor to create an instance of the RuneLite(Bot) class

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Application

      public Application()
  • Method Details

    • main

      public static void main(String[] args) throws Throwable
      Parses the command-line arguments and then passes the parsed arguments in the form of the parser, optionSpecs, and options to a constructor to create an instance of the RuneLite(Bot) class
      Parameters:
      args - The command line arguments for the program
      Throws:
      Throwable - Any error that might be thrown
    • getBot

      public static RuneLite getBot(Object o)
      Returns the Bot for any object loaded in its client. For internal use only (not useful for script writers).
      Parameters:
      o - Any object from within the client.
      Returns:
      The Bot for the client.
    • addBot

      public static void addBot(RuneLite bot)
      Adds a bot to the bot array
      Parameters:
      bot - the bot to be added to the array
    • getBots

      public static RuneLite[] getBots()
      Retrieves all running bot instances
      Returns:
      the bot instances