public final class Hiscores
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ImmutableList<java.lang.String> |
ACTIVITY_NAMES
The RuneScape activity names.
|
static ImmutableList<java.lang.String> |
OLDSCHOOL_ACTIVITY_NAMES
The oldschool RuneScape activity names.
|
static ImmutableList<java.lang.String> |
OLDSCHOOL_SKILL_NAMES
The oldschool RuneScape skill names.
|
static ImmutableList<java.lang.String> |
SKILL_NAMES
The RuneScape skill names.
|
| Constructor and Description |
|---|
Hiscores(Client client)
Creates a new
Hiscores. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableList<ClanMate> |
clanInformation(java.lang.String clanName)
Gets an
ImmutableList of ClanMates within a clan, based on the clan's name. |
java.util.Optional<Player> |
playerInformation(java.lang.String displayName,
HiscoreTable table)
Gets a
Player based on their display name. |
public static final ImmutableList<java.lang.String> SKILL_NAMES
public static final ImmutableList<java.lang.String> OLDSCHOOL_SKILL_NAMES
public static final ImmutableList<java.lang.String> ACTIVITY_NAMES
public static final ImmutableList<java.lang.String> OLDSCHOOL_ACTIVITY_NAMES
public java.util.Optional<Player> playerInformation(java.lang.String displayName, HiscoreTable table) throws java.io.IOException
Player based on their display name.displayName - The player's display name.table - The table of Hiscores.Optional containing the Player, or Optional.empty() if no Player was found with that name.java.io.IOException - If an I/O error occurs.public ImmutableList<ClanMate> clanInformation(java.lang.String clanName) throws java.io.IOException
ImmutableList of ClanMates within a clan, based on the clan's name.clanName - The clan's name.ImmutableList of ClanMates in the clan.java.io.IOException - If an I/O error occurs.