java.lang.Object
net.botwithus.rs3.game.login.World
- All Implemented Interfaces:
Interactable<World.Option>
Represents a world in the world list.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the activity of the world.Returns a defaultFunction
that throws anUnsupportedOperationException
when called.int
getId()
Returns the id of the world.Gets the options available for this Interactableint
getPing()
Returns the ping of the world.int
Returns the player count of the world.int
Returns the properties of the world.boolean
boolean
interact
(World.Option type) Performs an action based on the given type.boolean
isFull()
Returns true if the world is full.boolean
Returns true if the world is members only.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.botwithus.rs3.game.annotations.Interactable
interact, interact, interact
-
Constructor Details
-
World
-
-
Method Details
-
getId
public int getId()Returns the id of the world.- Returns:
- the id of the world
-
getPopulation
public int getPopulation()Returns the player count of the world.- Returns:
- the player count of the world
-
getProperties
public int getProperties()Returns the properties of the world. The holds if the world isMembers and other information.- Returns:
-
getActivity
Returns the activity of the world.- Returns:
- the activity of the world
-
isMembers
public boolean isMembers()Returns true if the world is members only.- Returns:
- true if the world is members only
-
isFull
public 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
-
getPing
public int getPing()Returns the ping of the world.- Returns:
- the ping of the world
-
interact
Description copied from interface:Interactable
Performs an action based on the given type.- Specified by:
interact
in interfaceInteractable<World.Option>
- Parameters:
type
- The type of action to perform.- Returns:
- true if the action was successful, false otherwise.
-
interact
- Specified by:
interact
in interfaceInteractable<World.Option>
-
getOptions
Description copied from interface:Interactable
Gets the options available for this Interactable- Specified by:
getOptions
in interfaceInteractable<World.Option>
- Returns:
- a list of strings containing the options
-
getDefaultMapper
Description copied from interface:Interactable
Returns a defaultFunction
that throws anUnsupportedOperationException
when called.- Specified by:
getDefaultMapper
in interfaceInteractable<World.Option>
- Returns:
- a default
Function
-