Package org.tribot.script.sdk
Enum Options.Tab
- java.lang.Object
-
- java.lang.Enum<Options.Tab>
-
- org.tribot.script.sdk.Options.Tab
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Options.Tab>
- Enclosing class:
- Options
public static enum Options.Tab extends java.lang.Enum<Options.Tab>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Options.Tab
getOpen()
Gets the currently opened options tabboolean
isOpen()
Checks if this options tab is openboolean
open()
Attempts to open this options tabstatic Options.Tab
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Options.Tab[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTROLS
public static final Options.Tab CONTROLS
-
AUDIO
public static final Options.Tab AUDIO
-
DISPLAY
public static final Options.Tab DISPLAY
-
-
Method Detail
-
values
public static Options.Tab[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Options.Tab c : Options.Tab.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Options.Tab valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isOpen
public boolean isOpen()
Checks if this options tab is open- Returns:
- true if this tab is open, false otherwise
-
open
public boolean open()
Attempts to open this options tab- Returns:
- true if the options tab was opened, false otherwise
-
getOpen
public static Options.Tab getOpen()
Gets the currently opened options tab- Returns:
- the currently opened options tab
-
-