Class WorldHopper
- java.lang.Object
-
- org.dreambot.api.methods.worldhopper.WorldHopper
-
public class WorldHopper extends java.lang.ObjectCreated by Pandemic
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanchangeWorldDirect(@NonNull World w)Directly calls a set world method inside of RS, correctly updating all members information required Only works while logged out.static booleanchangeWorldHopperDirect(@NonNull World w)Directly calls an interaction on the in game world hopper menu to hop worlds.static booleancloseWorldHopper()static booleandcHop(int world)If you're logged in, it will force a disconnect before forcing a world change.static intgetDefaultWorld()static @Nullable WidgetChild[]getWorldsInList()static booleanhopWorld(int world)Hops to specified worldstatic booleanhopWorld(int world, boolean combatCheck)Uses the in game hopper to change worlds Note: This does choose the option to not ask again.static booleanhopWorld(@NonNull World w)Hops to specified Worldstatic booleanisWorldHopperOpen()static booleanopenWorldHopper()static booleanquickHop(int world)Deprecated.seedcHop(int)
-
-
-
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
@Deprecated public static boolean quickHop(int world)
Deprecated.seedcHop(int)
-
dcHop
public static boolean dcHop(int world)
If you're logged in, it will force a disconnect before forcing a world change. If you're logged out, it will just change the world directly.- Parameters:
world- world to hop to (if over 300, it will decrease the world by 300 to find the proper id)- Returns:
- true if successfully changes world, 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-Worldto change to- Returns:
- False if logged in, True if already set to world or successfully sets to world
-
-