Enum Constant and Description |
---|
ACCOUNT_MANAGEMENT |
ATTACK |
CLANCHAT |
EMOTES |
EQUIPMENT |
FRIENDS |
INVENTORY |
LOGOUT |
MAGIC |
MUSIC |
NONE |
PRAYER |
QUEST |
SETTINGS |
SKILLS |
Modifier and Type | Method and Description |
---|---|
static Tab |
forId(int id) |
int |
getId()
Gets the tab index.
|
int[] |
getSprites()
Gets the tab possible sprites
|
boolean |
isDisabled(Bot bot)
Determines if this tab is currently disabled (i.e. like in Tutorial island or when bank is open)
|
boolean |
isOpen(Bot bot)
Determines if this tab is currently open.
|
static Tab |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Tab[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tab ATTACK
public static final Tab SKILLS
public static final Tab QUEST
public static final Tab INVENTORY
public static final Tab EQUIPMENT
public static final Tab PRAYER
public static final Tab MAGIC
public static final Tab CLANCHAT
public static final Tab FRIENDS
public static final Tab ACCOUNT_MANAGEMENT
public static final Tab LOGOUT
public static final Tab SETTINGS
public static final Tab EMOTES
public static final Tab MUSIC
public static final Tab NONE
public static Tab[] values()
for (Tab c : Tab.values()) System.out.println(c);
public static Tab valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Tab forId(int id)
public int getId()
public int[] getSprites()
public boolean isOpen(Bot bot)
bot
- The bot instance.public boolean isDisabled(Bot bot)
bot
- The bot instance.