World

public class World

Represents a world in the list of worlds available

See also

Constructors

World
Link copied to clipboard
void World(RSServer server)

Types

Location
Link copied to clipboard
public enum Location
Represents the location that a world can have.
Type
Link copied to clipboard
public enum Type
Represents the types that a world can have.

Functions

equals
Link copied to clipboard
boolean equals(Object o)
getActivity
Link copied to clipboard
Optional<StringgetActivity()
Gets the name of the activity of this world
getHostAddress
Link copied to clipboard
String getHostAddress()
Gets the host domain address (ex.
getLocation
Link copied to clipboard
World.Location getLocation()
Gets the world Location
getPing
Link copied to clipboard
Optional<IntegergetPing()
Attempts to calculate the ping for this world.
getPlayerCount
Link copied to clipboard
int getPlayerCount()
Gets the number of players listed in this world
getTotalLevelRequirement
Link copied to clipboard
int getTotalLevelRequirement()
Gets the total level requirement for this world
getTypes
Link copied to clipboard
Set<World.TypegetTypes()
Gets all the types of this world.
getWorldNumber
Link copied to clipboard
int getWorldNumber()
Gets the number of this world, ex.
hashCode
Link copied to clipboard
int hashCode()
isDangerous
Link copied to clipboard
boolean isDangerous()
Checks if this world has some alternative combat rules or form of items lost on death.
isLowPing
Link copied to clipboard
boolean isLowPing()
Checks if this world has low ping relative to other worlds.
isMainGame
Link copied to clipboard
boolean isMainGame()
Checks if this world is a part of the 'main' game, not some secondary game mode
isMembers
Link copied to clipboard
boolean isMembers()
Checks if this world is a members world
isRequirementsMet
Link copied to clipboard
boolean isRequirementsMet()
Checks if this world can be entered, the best it can with the information available.
isType
Link copied to clipboard
boolean isType(Array<World.Type> types)
Checks if this world matches all the specified types
isTypesAny
Link copied to clipboard
boolean isTypesAny(Array<World.Type> types)
Checks if this world matches any of the specified types
isTypesExactly
Link copied to clipboard
boolean isTypesExactly(Array<World.Type> types)
Checks if this world matches the specified types exactly.
toString
Link copied to clipboard
String toString()