Package org.dreambot.api.methods.world
Class World
- java.lang.Object
-
- org.dreambot.api.methods.world.World
-
public class World extends java.lang.Object
Created by Nezz on 1/5/2015.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
World.WorldBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getHost()
Location
getLocation()
Gets the Location of the worldint
getLocationValue()
Gets the location value of the world.int
getMask()
int
getMinimumLevel()
Gets the minimum level required for the world, 0 if no minimum level.int
getPopulation()
int
getRealID()
Gets the real ID of the world, less than 300int
getWorld()
Gets the ID of the world, greater than 300boolean
isBeta()
boolean
isDeadmanMode()
Checks if the world is deadman modeboolean
isF2P()
Checks if the world is a F2P worldboolean
isFreshStart()
Checks if the world is a Fresh Start worldboolean
isHighRisk()
Checks if the world is High Riskboolean
isLastManStanding()
boolean
isLeagueWorld()
boolean
isMembers()
Checks if the world is a Members only worldboolean
isNormal()
Normal checks to not be: Deadman Mode, Tournament World, League World, PVP, Last Man Standing, High Risk, Target World, PVP Arena, Suspicious (New/Unknown/Testing types), Beta, Fresh Startboolean
isPVP()
Checks if the world is PVPboolean
isPvpArena()
boolean
isSuspicious()
boolean
isTargetWorld()
boolean
isTournamentWorld()
void
setBeta(boolean beta)
void
setDeadmanMode(boolean deadmanMode)
void
setDescription(java.lang.String description)
void
setFreshStart(boolean freshStart)
void
setHighRisk(boolean highRisk)
void
setHost(java.lang.String host)
void
setLastManStanding(boolean lastManStanding)
void
setLeagueWorld(boolean leagueWorld)
void
setLocation(int location)
void
setMask(int mask)
void
setMember(boolean member)
void
setMinLevel(int minLevel)
void
setPopulation(int population)
void
setPVP(boolean PVP)
void
setPvpArena(boolean pvpArena)
void
setRealId(int id)
void
setSuspicious(boolean suspicious)
void
setTargetWorld(boolean targetWorld)
void
setTournamentWorld(boolean tournamentWorld)
java.lang.String
toString()
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
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
-
isHighRisk
public boolean isHighRisk()
Checks if the world is High Risk- Returns:
- True if High Risk, else False
-
isFreshStart
public boolean isFreshStart()
Checks if the world is a Fresh Start world- Returns:
- True if it is, else False
-
isDeadmanMode
public boolean isDeadmanMode()
Checks if the world is deadman mode- Returns:
- True if deadman mode, else False
-
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 the Location of the world- Returns:
- Location of the world
-
toString
public java.lang.String toString()
Gets the String value of the world, example: W330- Overrides:
toString
in classjava.lang.Object
- Returns:
- String value of the world
-
isTournamentWorld
public boolean isTournamentWorld()
-
isLastManStanding
public boolean isLastManStanding()
-
setLastManStanding
public void setLastManStanding(boolean lastManStanding)
-
setFreshStart
public void setFreshStart(boolean freshStart)
-
isTargetWorld
public boolean isTargetWorld()
-
setTargetWorld
public void setTargetWorld(boolean targetWorld)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getHost
public java.lang.String getHost()
-
setHost
public void setHost(java.lang.String host)
-
isLeagueWorld
public boolean isLeagueWorld()
-
isNormal
public boolean isNormal()
Normal checks to not be: Deadman Mode, Tournament World, League World, PVP, Last Man Standing, High Risk, Target World, PVP Arena, Suspicious (New/Unknown/Testing types), Beta, Fresh Start- Returns:
- true if it's normal
-
isSuspicious
public boolean isSuspicious()
-
setSuspicious
public void setSuspicious(boolean suspicious)
-
getMask
public int getMask()
-
setMask
public void setMask(int mask)
-
isPvpArena
public boolean isPvpArena()
-
setPvpArena
public void setPvpArena(boolean pvpArena)
-
isBeta
public boolean isBeta()
-
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)
-
getPopulation
public int getPopulation()
-
setPopulation
public void setPopulation(int population)
-
-