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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:InteractablePerforms an action based on the given type.- Specified by:
interactin interfaceInteractable<World.Option>- Parameters:
type- The type of action to perform.- Returns:
- true if the action was successful, false otherwise.
-
interact
- Specified by:
interactin interfaceInteractable<World.Option>
-
getOptions
Description copied from interface:InteractableGets the options available for this Interactable- Specified by:
getOptionsin interfaceInteractable<World.Option>- Returns:
- a list of strings containing the options
-
getDefaultMapper
Description copied from interface:InteractableReturns a defaultFunctionthat throws anUnsupportedOperationExceptionwhen called.- Specified by:
getDefaultMapperin interfaceInteractable<World.Option>- Returns:
- a default
Function
-