Package org.dreambot.api.methods.world
Class Worlds
- java.lang.Object
- 
- org.dreambot.api.methods.world.Worlds
 
- 
 public class Worlds extends java.lang.ObjectCreated by Nezz on 1/5/2015.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.List<World>all()Gets a List of all the worldsstatic java.util.List<World>all(Filter<World> filter)Returns a List of all worlds that match the given Filterstatic voidclearWorlds()Clears the world list and sets it to nullstatic java.util.List<World>f2p()Returns a list of f2p Worldsstatic WorldgetCurrent()Gets your current worldstatic intgetCurrentWorld()static LocationgetExactLocation(World w)Uses the world hopper widgets in game to determine real location of a given world.static WorldgetMyWorld()Deprecated.seegetCurrent()static java.util.List<World>getNormalizedWorlds()Gets a list of normalized Worlds Normalized meaning not: pvp, deadmode, tournament, twisted leauge, last man standing, bounty hunter, or high risk.static WorldgetRandomWorld()Gets a random world from all the worldsstatic WorldgetRandomWorld(java.util.List<World> worlds)Gets a random World from a given Liststatic WorldgetRandomWorld(Filter<World> worldFilter)Gets a random World that matches the given Filterstatic WorldgetWorld(int world)Gets a World object according to the given world numberstatic WorldgetWorld(Filter<World> filter)Gets the first World that matches the filterstatic java.util.List<World>highRisk()Gets a list of high risk worldsstatic java.util.List<World>members()returns a List of members only worldsstatic java.util.List<World>noMinimumLevel()Gets a list of worlds with no required levelstatic java.util.List<World>pvp()Gets a list of pvp worldsstatic voidrefresh()static voidupdatePing(World w)
 
- 
- 
- 
Method Detail- 
getCurrentWorldpublic static int getCurrentWorld() 
 - 
allpublic static java.util.List<World> all() Gets a List of all the worlds- Returns:
- List of all worlds
 
 - 
refreshpublic static void refresh() 
 - 
clearWorldspublic static void clearWorlds() Clears the world list and sets it to null
 - 
allpublic static java.util.List<World> all(Filter<World> filter) Returns a List of all worlds that match the given Filter- Parameters:
- filter- Filter for worlds
- Returns:
- List of worlds that match the given Filter
 
 - 
f2ppublic static java.util.List<World> f2p() Returns a list of f2p Worlds- Returns:
- List of f2p Worlds
 
 - 
memberspublic static java.util.List<World> members() returns a List of members only worlds- Returns:
- List of members only worlds
 
 - 
pvppublic static java.util.List<World> pvp() Gets a list of pvp worlds- Returns:
- List of pvp worlds
 
 - 
highRiskpublic static java.util.List<World> highRisk() Gets a list of high risk worlds- Returns:
- List of high risk worlds
 
 - 
noMinimumLevelpublic static java.util.List<World> noMinimumLevel() Gets a list of worlds with no required level- Returns:
- List of worlds with no required level
 
 - 
getWorldpublic static World getWorld(int world) Gets a World object according to the given world number- Parameters:
- world- world ID, can be in 301 format or 1
- Returns:
- World matching the given ID or null if none found
 
 - 
getWorldpublic static World getWorld(Filter<World> filter) Gets the first World that matches the filter- Parameters:
- filter- Filter for the World
- Returns:
- First World that matches the Filter or null if none found
 
 - 
getRandomWorldpublic static World getRandomWorld() Gets a random world from all the worlds- Returns:
- Random world from all the worlds
 
 - 
getRandomWorldpublic static World getRandomWorld(java.util.List<World> worlds) Gets a random World from a given List- Parameters:
- worlds- List of worlds to choose from
- Returns:
- random World or null if list is empty or null
 
 - 
getRandomWorldpublic static World getRandomWorld(Filter<World> worldFilter) Gets a random World that matches the given Filter- Parameters:
- worldFilter- Filter for Worlds
- Returns:
- Random World or null if no matches on filter
 
 - 
getNormalizedWorldspublic static java.util.List<World> getNormalizedWorlds() Gets a list of normalized Worlds Normalized meaning not: pvp, deadmode, tournament, twisted leauge, last man standing, bounty hunter, or high risk.- Returns:
- List of normalized worlds.
 
 - 
getMyWorld@Deprecated public static World getMyWorld() Deprecated.seegetCurrent()
 - 
getCurrentpublic static World getCurrent() Gets your current world- Returns:
- Your current world
 
 - 
updatePingpublic static void updatePing(World w) 
 - 
getExactLocationpublic static Location getExactLocation(World w) Uses the world hopper widgets in game to determine real location of a given world.- Parameters:
- w-- Worldto get the real location of
- Returns:
- Locationrepresenting the more precise location where available. Returns- World.getLocation()as a default/fallback
 
 
- 
 
-