Class Tabs
- java.lang.Object
-
- net.eternalclient.api.wrappers.tabs.Tabs
-
public class Tabs extends java.lang.Object
This class contains static methods for interacting with the tabs.
-
-
Constructor Summary
Constructors Constructor Description Tabs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Tab
getOpen()
Returns the currently open tab.static boolean
isDisabled(Tab tab)
Checks if the given tab is disabled.static boolean
isOpen(Tab tab)
Checks if a specific tab is currently open.static boolean
logout()
Logs out the current player.static boolean
open(Tab tab)
Opens the specified tab.static boolean
openWithFKey(Tab tab)
Opens the specified tab using the associated FKey or by the default open method.
-
-
-
Method Detail
-
getOpen
public static Tab getOpen()
Returns the currently open tab.- Returns:
- the currently open tab, or null if no tab is open
-
isOpen
public static boolean isOpen(Tab tab)
Checks if a specific tab is currently open.- Parameters:
tab
- the tab to check if it is open- Returns:
- true if the tab is open, false otherwise
-
isDisabled
public static boolean isDisabled(Tab tab)
Checks if the given tab is disabled.- Parameters:
tab
- the tab to check- Returns:
- true if the tab is disabled, false otherwise
-
open
public static boolean open(Tab tab)
Opens the specified tab.- Parameters:
tab
- the tab to be opened- Returns:
- true if the tab is successfully opened, false otherwise
-
openWithFKey
public static boolean openWithFKey(Tab tab)
Opens the specified tab using the associated FKey or by the default open method.- Parameters:
tab
- the tab to be opened- Returns:
- true if the tab is successfully opened, false otherwise
-
logout
public static boolean logout()
Logs out the current player.- Returns:
true
if logout event is successfully executed;false
otherwise.
-
-