Package rsb.methods
Class Environment
java.lang.Object
rsb.methods.MethodProvider
rsb.methods.Environment
Bot environment related operations.
- Author:
- GigiaJ
-
Field Summary
FieldsFields inherited from class rsb.methods.MethodProvider
methods -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandisableRandom(String name) Disables a random event solver.voidvoidDeprecated.booleanenableRandom(String name) Enables a random event solver.voidEnables all random event solvers.voidsaveScreenshot(boolean hideUsername) Takes and saves a screenshot.voidsetUserInput(int mask) Controls the available means of user input when user input is disabled.takeScreenshot(boolean hideUsername) Takes a screenshot.
-
Field Details
-
INPUT_MOUSE
public static final int INPUT_MOUSE- See Also:
-
INPUT_KEYBOARD
public static final int INPUT_KEYBOARD- See Also:
-
-
Constructor Details
-
Environment
-
-
Method Details
-
setUserInput
public void setUserInput(int mask) Controls the available means of user input when user input is disabled. Disable all:setUserInput(0);Enable keyboard only:setUserInput(Environment.INPUT_KEYBOARD);Enable mouse and keyboard:setUserInput(Environment.INPUT_MOUSE | Environment.INPUT_KEYBOARD);- Parameters:
mask- flags indicating which types of input to allow
-
saveScreenshot
public void saveScreenshot(boolean hideUsername) Takes and saves a screenshot.- Parameters:
hideUsername-trueto cover the player's username; otherwisefalse
-
takeScreenshot
Takes a screenshot.- Parameters:
hideUsername-trueto cover the player's username; otherwisefalse- Returns:
- The screen capture image.
-
enableRandom
Enables a random event solver.- Parameters:
name- the anti-random's (manifest) name (case insensitive)- Returns:
trueif random was found and set to enabled; otherwisefalse
-
disableRandom
Disables a random event solver.- Parameters:
name- the anti-random's (manifest) name (case insensitive)- Returns:
trueif random was found and set to disabled; otherwisefalse
-
enableRandoms
public void enableRandoms()Enables all random event solvers. -
disbleRandoms
Deprecated.Disables all randoms. -
disableRandoms
public void disableRandoms()
-