Class WorldHopper
- java.lang.Object
-
- net.eternalclient.api.wrappers.world.WorldHopper
-
public class WorldHopper extends java.lang.Object
This class provides methods for interacting with the World Hopper.
-
-
Constructor Summary
Constructors Constructor Description WorldHopper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
closeWorldHopper()
Closes the world hopper widget, verifying the presence of the "Logout" tab before execution.static boolean
hopWorld(int worldId)
Hops the bot to a specified world.static boolean
hopWorld(World world)
Hops the current player's world to the specified world.static boolean
isWorldHopperOpen()
Checks if the world hopper interface is currently open.static boolean
openWorldHopper()
Opens the world hopper interface, verifies that the logout tab is active, and returns whether the action was executed successfully.
-
-
-
Method Detail
-
isWorldHopperOpen
public static boolean isWorldHopperOpen()
Checks if the world hopper interface is currently open.- Returns:
- true if the world hopper interface is open, false otherwise.
-
openWorldHopper
public static boolean openWorldHopper()
Opens the world hopper interface, verifies that the logout tab is active, and returns whether the action was executed successfully.- Returns:
- true if the world hopper interface was opened and the logout tab was active, false otherwise.
-
closeWorldHopper
public static boolean closeWorldHopper()
Closes the world hopper widget, verifying the presence of the "Logout" tab before execution.- Returns:
- true if the world hopper widget was successfully closed, false otherwise.
-
hopWorld
public static boolean hopWorld(World world)
Hops the current player's world to the specified world.- Parameters:
world
- The world to hop to.- Returns:
- true if the world hopping is successful, false otherwise.
-
hopWorld
public static boolean hopWorld(int worldId)
Hops the bot to a specified world.- Parameters:
worldId
- the ID of the world to hop to- Returns:
- true if the hop is successful, false otherwise
-
-