Package rsb.botLauncher
Class Application
java.lang.Object
rsb.botLauncher.Application
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Adds a bot to the bot arraystatic RuneLite
Returns the Bot for any object loaded in its client.static RuneLite[]
getBots()
Retrieves all running bot instancesstatic void
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
-
Constructor Details
-
Application
public Application()
-
-
Method Details
-
main
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
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
Adds a bot to the bot array- Parameters:
bot
- the bot to be added to the array
-
getBots
Retrieves all running bot instances- Returns:
- the bot instances
-