Class WorldHopper
- java.lang.Object
-
- org.dreambot.api.methods.worldhopper.WorldHopper
-
public class WorldHopper extends java.lang.Object
Created by Pandemic
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
changeWorldDirect(@NonNull World w)
Directly calls a set world method inside of RS, correctly updating all members information required Only works while logged out.static boolean
closeWorldHopper()
static int
getDefaultWorld()
static @Nullable WidgetChild[]
getWorldsInList()
static boolean
hopWorld(int world)
Hops to specified worldstatic boolean
hopWorld(int world, boolean combatCheck)
Uses the in game hopper to change worlds Note: This does choose the option to not ask again.static boolean
hopWorld(@NonNull World w)
Hops to specified Worldstatic boolean
isWorldHopperOpen()
static boolean
openWorldHopper()
static boolean
quickHop(int world)
quickHops to specified world
-
-
-
Method Detail
-
getWorldsInList
public static @Nullable WidgetChild[] getWorldsInList()
-
isWorldHopperOpen
public static boolean isWorldHopperOpen()
-
closeWorldHopper
public static boolean closeWorldHopper()
-
openWorldHopper
public static boolean openWorldHopper()
-
hopWorld
public static boolean hopWorld(@NonNull World w)
Hops to specified World- Parameters:
w
- World to hop to- Returns:
- True if hopped, else false
-
hopWorld
public static boolean hopWorld(int world, boolean combatCheck)
Uses the in game hopper to change worlds Note: This does choose the option to not ask again.- Parameters:
world
- integer value of world to hop to, <300 value or literal world value accepted (eg 1 vs 301)combatCheck
- false will ignore the combat check for the hopper, default value from base methods is true.- Returns:
- false if in combat, true if by the end of the method your world is your target world.
-
hopWorld
public static boolean hopWorld(int world)
Hops to specified world- Parameters:
world
- World to hop to- Returns:
- True if hopped, else false
-
quickHop
public static boolean quickHop(int world)
quickHops to specified world- Parameters:
world
- integer value of world to hop to- Returns:
- True if hopped, else false
-
getDefaultWorld
public static int getDefaultWorld()
-
changeWorldDirect
public static boolean changeWorldDirect(@NonNull World w)
Directly calls a set world method inside of RS, correctly updating all members information required Only works while logged out.- Parameters:
w
-World
to change to- Returns:
- False if logged in, True if already set to world or successfully sets to world
-
-