WorldsAPI
World hopping that waits until the hop is done. Call it only from VitaPlugin.loop().
ClassRLPlugins API
public class WorldsAPIThese helpers wait. Call them only from VitaPlugin.loop(); on the game thread, for example in a @Subscribe method, they freeze the game.
Members
Static methods
- WorldQuerycreateDefaultQuery(boolean)
Starts a world search without PvP and skill-total worlds. Pass
trueto keep the world you are in. - WorldgetCurrentWorld()
Get the current world the client is logged into.
- voidhop(World)
Hop to a specific world.
- voidhop(int)
Hop to a specific world by its ID.
- voidhopNextF2p()
Hops to the next free to play world with an ID higher than the current and not skill total, not pvp, main game.
- voidhopNextMembers()
Hops to the next members world with an ID higher than the current and not skill total, not pvp, main game.
- voidhopPreviousF2p()
Hops to the next free to play world with an ID lower than the current and not skill total, not pvp, main game.
- voidhopPreviousMembers()
Hops to the next members world with an ID lower than the current and not skill total, not pvp, main game.
- voidhopRandomF2p()
Hop to a random free to play world (not skill total, not pvp, main game).
- voidhopRandomMembers()
Hop to a random members world (not skill total, not pvp, main game).
- booleaninMembersWorld()
Check if the current world is a members world.
createDefaultQuery(boolean)static
public static WorldQuery createDefaultQuery(boolean includeCurrentWorld)Starts a world search without PvP and skill-total worlds. Pass true to keep the world you are in.
Parameters
includeCurrentWorld- Whether to include the current world or not.
Returns
A query filtering out *generally unwanted* worlds. This means skill totals, non main game worlds, and pvp are filtered.
getCurrentWorld()static
public static World getCurrentWorld()Get the current world the client is logged into.
Returns
The current world.
hop(World)static
public static void hop(World world)Hop to a specific world.
Parameters
world- The world to hop to.
hop(int)static
public static void hop(int worldId)Hop to a specific world by its ID.
Parameters
worldId- The ID of the world to hop to.
hopNextF2p()static
public static void hopNextF2p()Hops to the next free to play world with an ID higher than the current and not skill total, not pvp, main game.
If you're on the highest world already, it hops back to the first world in the list.
hopNextMembers()static
public static void hopNextMembers()Hops to the next members world with an ID higher than the current and not skill total, not pvp, main game.
If you're on the highest world already, it hops back to the first world in the list.
hopPreviousF2p()static
public static void hopPreviousF2p()Hops to the next free to play world with an ID lower than the current and not skill total, not pvp, main game.
If you're on the lowest world already, it hops back to the last world in the list.
hopPreviousMembers()static
public static void hopPreviousMembers()Hops to the next members world with an ID lower than the current and not skill total, not pvp, main game.
If you're on the lowest world already, it hops back to the last world in the list.
hopRandomF2p()static
public static void hopRandomF2p()Hop to a random free to play world (not skill total, not pvp, main game).
hopRandomMembers()static
public static void hopRandomMembers()Hop to a random members world (not skill total, not pvp, main game).
inMembersWorld()static
public static boolean inMembersWorld()Check if the current world is a members world.
Returns
True if the current world is a members world, false otherwise.
Also allowed
Every class has these, as in plain Java.
equals, toString