java.lang.Object
net.botwithus.rs3.game.login.World
- All Implemented Interfaces:
- Interactable<World.Option>
Represents a world in the world list.
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the activity of the world.Returns a defaultFunctionthat throws anUnsupportedOperationExceptionwhen called.intgetId()Returns the id of the world.Gets the options available for this InteractableintgetPing()Returns the ping of the world.intReturns the player count of the world.intReturns the properties of the world.booleanbooleaninteract(World.Option type) Performs an action based on the given type.booleanisFull()Returns true if the world is full.booleanReturns true if the world is members only.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.botwithus.rs3.game.annotations.Interactableinteract, interact, interact
- 
Constructor Details- 
World
 
- 
- 
Method Details- 
getIdpublic int getId()Returns the id of the world.- Returns:
- the id of the world
 
- 
getPopulationpublic int getPopulation()Returns the player count of the world.- Returns:
- the player count of the world
 
- 
getPropertiespublic int getProperties()Returns the properties of the world. The holds if the world isMembers and other information.- Returns:
 
- 
getActivityReturns the activity of the world.- Returns:
- the activity of the world
 
- 
isMemberspublic boolean isMembers()Returns true if the world is members only.- Returns:
- true if the world is members only
 
- 
isFullpublic boolean isFull()Returns true if the world is full. Jagex checks the population in cs2 against 1980 so we do the same- Returns:
- true if the world is full
 
- 
getPingpublic int getPing()Returns the ping of the world.- Returns:
- the ping of the world
 
- 
interactDescription copied from interface:InteractablePerforms an action based on the given type.- Specified by:
- interactin interface- Interactable<World.Option>
- Parameters:
- type- The type of action to perform.
- Returns:
- true if the action was successful, false otherwise.
 
- 
interact- Specified by:
- interactin interface- Interactable<World.Option>
 
- 
getOptionsDescription copied from interface:InteractableGets the options available for this Interactable- Specified by:
- getOptionsin interface- Interactable<World.Option>
- Returns:
- a list of strings containing the options
 
- 
getDefaultMapperDescription copied from interface:InteractableReturns a defaultFunctionthat throws anUnsupportedOperationExceptionwhen called.- Specified by:
- getDefaultMapperin interface- Interactable<World.Option>
- Returns:
- a default Function
 
 
-