public class Worlds extends API
bank, bot, camera, chatbox, client, colorPicker, combat, configs, depositBox, dialogues, diaries, display, doorHandler, equipment, experienceTracker, favour, grandExchange, graphicObjects, groundItems, hintArrow, inventory, keyboard, logger, logoutTab, magic, map, menu, mouse, npcs, objects, players, prayer, projectiles, quests, settings, skills, store, tabs, trade, walking, widgets, worlds
Constructor and Description |
---|
Worlds() |
Modifier and Type | Method and Description |
---|---|
boolean |
cancelSwitch() |
boolean |
confirmSwitch() |
java.util.List<World> |
getAvailableWorlds(boolean all)
Gets a list with all available worlds to hop to
|
java.util.List<World> |
getAvailableWorlds(boolean all,
java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
Gets a list with all available worlds to hop to
|
int |
getCurrentWorld() |
java.awt.Rectangle |
getViewport() |
RS2Widget |
getViewportWidget() |
boolean |
hop(int world)
Hops to the specified world id if the destination is not already the world you are in.
|
boolean |
hop(int world,
boolean allowedWorldsOnly)
Hops to the specified world id if the destination is not already the world you are in.
|
boolean |
hop(int world,
boolean allowedWorldsOnly,
java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
Hops to the specified world id if the destination is not already the world you are in.
|
boolean |
hop(int world,
java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
Hops to the specified world id if the destination is not already the world you are in.
|
boolean |
hopToF2PWorld()
Hops to a random F2P server which is not full or is PvP.
|
boolean |
hopToF2PWorld(java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
Hops to a random F2P server which is not full or is PvP.
|
boolean |
hopToP2PWorld()
Hops to a random P2P server which is not full or is PvP.
|
boolean |
hopToP2PWorld(java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
Hops to a random P2P server which is not full or is PvP.
|
boolean |
hover(int world)
Hovers the mouse over the world
|
boolean |
hover(int world,
java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
Hovers the mouse over the world
|
void |
initializeModule() |
boolean |
isMembersWorld() |
boolean |
isOpen() |
boolean |
isWorldAllowedForHop(World world)
Checks if a world is allowed to be hopped to
|
exchangeContext, execute, getBank, getBot, getCamera, getChatbox, getClient, getColorPicker, getCombat, getConfigs, getDepositBox, getDialogues, getDiaries, getDisplay, getDoorHandler, getEquipment, getExperienceTracker, getFavour, getGrandExchange, getGraphicObjects, getGroundItems, getHintArrow, getInventory, getKeyboard, getLogoutTab, getMagic, getMap, getMenuAPI, getMouse, getNpcs, getObjects, getPlayers, getPrayer, getProjectiles, getQuests, getSettings, getSkills, getStore, getTabs, getTrade, getWalking, getWidgets, getWorlds, gRandom, gRandom, gRandom, initializeContext, log, log, myPlayer, myPosition, random, random, sleep, stripFormatting, warn
public void initializeModule()
initializeModule
in class API
public java.awt.Rectangle getViewport()
public RS2Widget getViewportWidget()
public boolean isOpen()
public boolean cancelSwitch()
public boolean confirmSwitch()
public boolean hover(int world)
world
- the world to hoverpublic boolean hover(int world, java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
world
- the world to hoverbreakCondition
- Return true to break the hopping processpublic java.util.List<World> getAvailableWorlds(boolean all)
all
- True for all worlds, False to filter out worlds that are not allowed to be hopped topublic java.util.List<World> getAvailableWorlds(boolean all, java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
all
- True for all worlds, False to filter out worlds that are not allowed to be hopped tobreakCondition
- Return true to break the hopping processpublic int getCurrentWorld()
public boolean isMembersWorld()
public boolean isWorldAllowedForHop(World world)
world
- the world to checkpublic boolean hopToP2PWorld()
public boolean hopToP2PWorld(java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
breakCondition
- Return true to break the hopping processpublic boolean hopToF2PWorld()
public boolean hopToF2PWorld(java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
breakCondition
- Return true to break the hopping processpublic boolean hop(int world)
world
- The world to hop tohop(int, boolean)
world, truepublic boolean hop(int world, boolean allowedWorldsOnly)
world
- The world to hop toallowedWorldsOnly
- True to only hop to worlds for which isWorldAllowedForHop(World)
returns truehop(int, boolean, Callable)
world, allowedWorldsOnly, () -> falsepublic boolean hop(int world, java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
world
- The world to hop tobreakCondition
- Return true to break the hopping processhop(int, boolean, Callable)
world, true, breakConditionpublic boolean hop(int world, boolean allowedWorldsOnly, java.util.concurrent.Callable<java.lang.Boolean> breakCondition)
world
- The world to hop toallowedWorldsOnly
- True to only hop to worlds for which isWorldAllowedForHop(World)
returns truebreakCondition
- Return true to break the hopping process