WorldsAPI
The current world and world hopping that does not wait.
ClassRLPlugins API
public class WorldsAPIMembers
Static methods
- WorldQuerycreateDefaultQuery(boolean)
Starts a world search without PvP and skill-total worlds. Pass
trueto keep the world you are in. - WorldgetCurrentWorld()
The world you are in.
- voidhop(World)
Hops to this world.
- voidhop(int)
Hops to this world.
- voidhopNextF2p()
Hops to the next free-to-play world. Skips PvP and skill-total worlds.
- voidhopNextMembers()
Hops to the next members world. Skips PvP and skill-total worlds.
- voidhopPreviousF2p()
Hops to the previous free-to-play world. Skips PvP and skill-total worlds.
- voidhopPreviousMembers()
Hops to the previous members world. Skips PvP and skill-total worlds.
- voidhopRandomF2p()
Hops to a random free-to-play world. Skips PvP and skill-total worlds.
- voidhopRandomMembers()
Hops to a random members world. Skips PvP and skill-total worlds.
- booleaninMembersWorld()
Whether you are in a members world.
- booleanrequestHop(int)
Requests a world change without blocking the client tick.
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- Include current world.
getCurrentWorld()static
public static World getCurrentWorld()The world you are in.
hop(World)static
public static void hop(World world)Hops to this world.
Parameters
world- World.
hop(int)static
public static void hop(int worldId)Hops to this world.
Parameters
worldId- World id.
hopNextF2p()static
public static void hopNextF2p()Hops to the next free-to-play world. Skips PvP and skill-total worlds.
hopNextMembers()static
public static void hopNextMembers()Hops to the next members world. Skips PvP and skill-total worlds.
hopPreviousF2p()static
public static void hopPreviousF2p()Hops to the previous free-to-play world. Skips PvP and skill-total worlds.
hopPreviousMembers()static
public static void hopPreviousMembers()Hops to the previous members world. Skips PvP and skill-total worlds.
hopRandomF2p()static
public static void hopRandomF2p()Hops to a random free-to-play world. Skips PvP and skill-total worlds.
hopRandomMembers()static
public static void hopRandomMembers()Hops to a random members world. Skips PvP and skill-total worlds.
inMembersWorld()static
public static boolean inMembersWorld()Whether you are in a members world.
requestHop(int)static
public static boolean requestHop(int worldId)Requests a world change without blocking the client tick.
Repeated calls may open the switcher first, then select the world, then confirm its warning on later ticks. Returns true when already there or a world/confirmation action was dispatched.
Parameters
worldId- World id.
Also allowed
Every class has these, as in plain Java.
equals, toString