public interface Scoreboard
Modifier and Type | Method and Description |
---|---|
void |
clearSlot(DisplaySlot slot)
Clears any objective in the specified slot.
|
Set<String> |
getEntries()
Gets all entries tracked by this Scoreboard
|
Objective |
getObjective(DisplaySlot slot)
Gets the Objective currently displayed in a DisplaySlot on this
Scoreboard
|
Objective |
getObjective(String name)
Gets an Objective on this Scoreboard by name
|
Set<Objective> |
getObjectives()
Gets all Objectives on this Scoreboard
|
Set<Objective> |
getObjectivesByCriteria(String criteria)
Gets all Objectives of a Criteria on the Scoreboard
|
Set<OfflinePlayer> |
getPlayers()
Deprecated.
Scoreboards can contain entries that aren't players
|
Team |
getPlayerTeam(OfflinePlayer player)
Gets a player's Team on this Scoreboard
|
Set<Score> |
getScores(OfflinePlayer player)
Deprecated.
Scoreboards can contain entries that aren't players
|
Set<Score> |
getScores(String entry)
Gets all scores for an entry on this Scoreboard
|
Team |
getTeam(String teamName)
Gets a Team by name on this Scoreboard
|
Set<Team> |
getTeams()
Gets all teams on this Scoreboard
|
Objective |
registerNewObjective(String name,
String criteria)
Registers an Objective on this Scoreboard
|
Team |
registerNewTeam(String name)
Registers a Team on this Scoreboard
|
void |
resetScores(OfflinePlayer player)
Deprecated.
Scoreboards can contain entries that aren't players
|
void |
resetScores(String entry)
Removes all scores for an entry on this Scoreboard
|
Objective registerNewObjective(String name, String criteria) throws IllegalArgumentException
name
- Name of the Objectivecriteria
- Criteria for the ObjectiveIllegalArgumentException
- if name is nullIllegalArgumentException
- if criteria is nullIllegalArgumentException
- if an objective by that name already
existsObjective getObjective(String name) throws IllegalArgumentException
name
- Name of the ObjectiveIllegalArgumentException
- if name is nullSet<Objective> getObjectivesByCriteria(String criteria) throws IllegalArgumentException
criteria
- Criteria to search byIllegalArgumentException
Set<Objective> getObjectives()
Objective getObjective(DisplaySlot slot) throws IllegalArgumentException
slot
- The DisplaySlotIllegalArgumentException
- if slot is null@Deprecated Set<Score> getScores(OfflinePlayer player) throws IllegalArgumentException
player
- the player whose scores are being retrievedIllegalArgumentException
- if player is nullgetScores(String)
Set<Score> getScores(String entry) throws IllegalArgumentException
entry
- the entry whose scores are being retrievedIllegalArgumentException
- if entry is null@Deprecated void resetScores(OfflinePlayer player) throws IllegalArgumentException
player
- the player to drop all current scores forIllegalArgumentException
- if player is nullresetScores(String)
void resetScores(String entry) throws IllegalArgumentException
entry
- the entry to drop all current scores forIllegalArgumentException
- if entry is nullTeam getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException
player
- the player to search forIllegalArgumentException
- if player is nullTeam getTeam(String teamName) throws IllegalArgumentException
teamName
- Team nameIllegalArgumentException
- if teamName is nullTeam registerNewTeam(String name) throws IllegalArgumentException
name
- Team nameIllegalArgumentException
- if name is nullIllegalArgumentException
- if team by that name already exists@Deprecated Set<OfflinePlayer> getPlayers()
getEntries()
Set<String> getEntries()
void clearSlot(DisplaySlot slot) throws IllegalArgumentException
slot
- the slot to remove objectivesIllegalArgumentException
- if slot is nullCopyright © 2015. All rights reserved.