Package org.dreambot.api.methods.world
Class World
- java.lang.Object
-
- org.dreambot.api.methods.world.World
-
public class World extends java.lang.ObjectCreated by Nezz on 1/5/2015.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorld.WorldBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetDescription()LocationgetExactLocation()Gets the exactLocationof the world Checks for US East vs US Westjava.lang.StringgetHost()LocationgetLocation()Gets theLocationof the world Does not check between US East and US WestintgetLocationValue()Gets the location value of the world.intgetMask()intgetMinimumLevel()Gets the minimum level required for the world, 0 if no minimum level.intgetPing()intgetPopulation()java.lang.StringgetRealHost()intgetRealId()Gets the real ID of the world, less than 300intgetRealID()Deprecated.seegetRealId()intgetWorld()Gets the ID of the world, greater than 300booleanisBeta()booleanisDeadmanMode()Checks if the world is deadman modebooleanisF2P()Checks if the world is a F2P worldbooleanisFreshStart()Checks if the world is a Fresh Start worldbooleanisHighRisk()Checks if the world is High RiskbooleanisLastManStanding()booleanisLeagueWorld()booleanisMembers()Checks if the world is a Members only worldbooleanisNormal()Normal checks to not be: Deadman Mode, Tournament World, League World, PVP, High Risk, Speed Running, Target World, PVP Arena, Suspicious (New/Unknown/Testing types), Beta, Fresh StartbooleanisPVP()Checks if the world is PVPbooleanisPvpArena()booleanisSpeedRunning()booleanisSuspicious()booleanisTargetWorld()booleanisTournamentWorld()voidsetBeta(boolean beta)voidsetDeadmanMode(boolean deadmanMode)voidsetDescription(java.lang.String description)voidsetFreshStart(boolean freshStart)voidsetHighRisk(boolean highRisk)voidsetHost(java.lang.String host)voidsetLastManStanding(boolean lastManStanding)voidsetLeagueWorld(boolean leagueWorld)voidsetLocation(int location)voidsetMask(int mask)voidsetMember(boolean member)voidsetMinLevel(int minLevel)voidsetPing(int ping)voidsetPopulation(int population)voidsetPVP(boolean PVP)voidsetPvpArena(boolean pvpArena)voidsetRealHost(java.lang.String realHost)voidsetRealId(int id)voidsetSpeedRunning(boolean running)voidsetSuspicious(boolean suspicious)voidsetTargetWorld(boolean targetWorld)voidsetTournamentWorld(boolean tournamentWorld)java.lang.StringtoString()Gets the String value of the world, example: W330
-
-
-
Constructor Detail
-
World
public World()
-
World
public World(int id, boolean isMember, boolean isPVP, boolean highRisk, boolean dmm, int location, int minLevel, boolean lastManStanding, boolean tournamentWorld, boolean targetWorld, boolean twistedLeague)Creates a World object- Parameters:
id- ID of the world, under 300isMember- boolean value of if the world is membersisPVP- boolean value of if the world is PVPhighRisk- boolean value of if the world is high risklocation- integer value of the location, 1=US, 2=Germany, 3=UK
-
-
Method Detail
-
getWorld
public int getWorld()
Gets the ID of the world, greater than 300- Returns:
- world ID
-
getRealID
@Deprecated public int getRealID()
Deprecated.seegetRealId()
-
getRealId
public int getRealId()
Gets the real ID of the world, less than 300- Returns:
- Real ID of the world
-
getLocationValue
public int getLocationValue()
Gets the location value of the world.- Returns:
- integer value of location of world
-
isMembers
public boolean isMembers()
Checks if the world is a Members only world- Returns:
- True if members only, else False
-
isF2P
public boolean isF2P()
Checks if the world is a F2P world- Returns:
- True if f2p, else False
-
isPVP
public boolean isPVP()
Checks if the world is PVP- Returns:
- True if PVP, else False
-
getPing
public int getPing()
-
getMinimumLevel
public int getMinimumLevel()
Gets the minimum level required for the world, 0 if no minimum level.- Returns:
- Integer value of required minimum level for the world
-
getLocation
public Location getLocation()
Gets theLocationof the world Does not check between US East and US West- Returns:
- Location of the world
-
getExactLocation
public Location getExactLocation()
Gets the exactLocationof the world Checks for US East vs US West- Returns:
- Location of the world
-
toString
public java.lang.String toString()
Gets the String value of the world, example: W330- Overrides:
toStringin classjava.lang.Object- Returns:
- String value of the world
-
setLastManStanding
public void setLastManStanding(boolean lastManStanding)
-
setFreshStart
public void setFreshStart(boolean freshStart)
-
setTargetWorld
public void setTargetWorld(boolean targetWorld)
-
setDescription
public void setDescription(java.lang.String description)
-
setHost
public void setHost(java.lang.String host)
-
isNormal
public boolean isNormal()
Normal checks to not be: Deadman Mode, Tournament World, League World, PVP, High Risk, Speed Running, Target World, PVP Arena, Suspicious (New/Unknown/Testing types), Beta, Fresh Start- Returns:
- true if it's normal
-
setSpeedRunning
public void setSpeedRunning(boolean running)
-
setSuspicious
public void setSuspicious(boolean suspicious)
-
setMask
public void setMask(int mask)
-
setPvpArena
public void setPvpArena(boolean pvpArena)
-
setBeta
public void setBeta(boolean beta)
-
setRealId
public void setRealId(int id)
-
setMember
public void setMember(boolean member)
-
setPVP
public void setPVP(boolean PVP)
-
setLocation
public void setLocation(int location)
-
setHighRisk
public void setHighRisk(boolean highRisk)
-
setMinLevel
public void setMinLevel(int minLevel)
-
setDeadmanMode
public void setDeadmanMode(boolean deadmanMode)
-
setTournamentWorld
public void setTournamentWorld(boolean tournamentWorld)
-
setLeagueWorld
public void setLeagueWorld(boolean leagueWorld)
-
setPing
public void setPing(int ping)
-
getRealHost
public java.lang.String getRealHost()
-
setRealHost
public void setRealHost(java.lang.String realHost)
-
getPopulation
public int getPopulation()
-
setPopulation
public void setPopulation(int population)
-
isHighRisk
public boolean isHighRisk()
Checks if the world is High Risk- Returns:
- True if High Risk, else False
-
isDeadmanMode
public boolean isDeadmanMode()
Checks if the world is deadman mode- Returns:
- True if deadman mode, else False
-
isSpeedRunning
public boolean isSpeedRunning()
-
isLastManStanding
public boolean isLastManStanding()
-
isTournamentWorld
public boolean isTournamentWorld()
-
isTargetWorld
public boolean isTargetWorld()
-
isLeagueWorld
public boolean isLeagueWorld()
-
isPvpArena
public boolean isPvpArena()
-
getDescription
public java.lang.String getDescription()
-
getHost
public java.lang.String getHost()
-
isFreshStart
public boolean isFreshStart()
Checks if the world is a Fresh Start world- Returns:
- True if it is, else False
-
isSuspicious
public boolean isSuspicious()
-
isBeta
public boolean isBeta()
-
getMask
public int getMask()
-
-