public interface Scoreboard
Modifier and Type | Method | Description |
---|---|---|
void |
clearSlot(DisplaySlot slot) |
Clears any objective in the specified slot.
|
java.util.Set<java.lang.String> |
getEntries() |
Gets all entries tracked by this Scoreboard
|
Team |
getEntryTeam(java.lang.String entry) |
Gets a entries Team on this Scoreboard
|
Objective |
getObjective(java.lang.String name) |
Gets an Objective on this Scoreboard by name
|
Objective |
getObjective(DisplaySlot slot) |
Gets the Objective currently displayed in a DisplaySlot on this
Scoreboard
|
java.util.Set<Objective> |
getObjectives() |
Gets all Objectives on this Scoreboard
|
java.util.Set<Objective> |
getObjectivesByCriteria(java.lang.String criteria) |
Gets all Objectives of a Criteria on the Scoreboard
|
java.util.Set<OfflinePlayer> |
getPlayers() |
Deprecated.
Scoreboards can contain entries that aren't players
|
Team |
getPlayerTeam(OfflinePlayer player) |
Deprecated.
Scoreboards can contain entries that aren't players
|
java.util.Set<Score> |
getScores(java.lang.String entry) |
Gets all scores for an entry on this Scoreboard
|
java.util.Set<Score> |
getScores(OfflinePlayer player) |
Deprecated.
Scoreboards can contain entries that aren't players
|
Team |
getTeam(java.lang.String teamName) |
Gets a Team by name on this Scoreboard
|
java.util.Set<Team> |
getTeams() |
Gets all teams on this Scoreboard
|
Objective |
registerNewObjective(java.lang.String name,
java.lang.String criteria) |
Deprecated.
a displayName should be explicitly specified
|
Objective |
registerNewObjective(java.lang.String name,
java.lang.String criteria,
java.lang.String displayName) |
Registers an Objective on this Scoreboard
|
Team |
registerNewTeam(java.lang.String name) |
Registers a Team on this Scoreboard
|
void |
resetScores(java.lang.String entry) |
Removes all scores for an entry on this Scoreboard
|
void |
resetScores(OfflinePlayer player) |
Deprecated.
Scoreboards can contain entries that aren't players
|
@Deprecated Objective registerNewObjective(java.lang.String name, java.lang.String criteria) throws java.lang.IllegalArgumentException
name
- Name of the Objectivecriteria
- Criteria for the Objectivejava.lang.IllegalArgumentException
- if name is nulljava.lang.IllegalArgumentException
- if name is longer than 16
characters.java.lang.IllegalArgumentException
- if criteria is nulljava.lang.IllegalArgumentException
- if an objective by that name already
existsObjective registerNewObjective(java.lang.String name, java.lang.String criteria, java.lang.String displayName) throws java.lang.IllegalArgumentException
name
- Name of the Objectivecriteria
- Criteria for the ObjectivedisplayName
- Name displayed to players for the Objective.java.lang.IllegalArgumentException
- if name is nulljava.lang.IllegalArgumentException
- if name is longer than 16
characters.java.lang.IllegalArgumentException
- if criteria is nulljava.lang.IllegalArgumentException
- if displayName is nulljava.lang.IllegalArgumentException
- if displayName is longer than 128
characters.java.lang.IllegalArgumentException
- if an objective by that name already
existsObjective getObjective(java.lang.String name) throws java.lang.IllegalArgumentException
name
- Name of the Objectivejava.lang.IllegalArgumentException
- if name is nulljava.util.Set<Objective> getObjectivesByCriteria(java.lang.String criteria) throws java.lang.IllegalArgumentException
criteria
- Criteria to search byjava.lang.IllegalArgumentException
java.util.Set<Objective> getObjectives()
Objective getObjective(DisplaySlot slot) throws java.lang.IllegalArgumentException
slot
- The DisplaySlotjava.lang.IllegalArgumentException
- if slot is null@Deprecated java.util.Set<Score> getScores(OfflinePlayer player) throws java.lang.IllegalArgumentException
player
- the player whose scores are being retrievedjava.lang.IllegalArgumentException
- if player is nullgetScores(String)
java.util.Set<Score> getScores(java.lang.String entry) throws java.lang.IllegalArgumentException
entry
- the entry whose scores are being retrievedjava.lang.IllegalArgumentException
- if entry is null@Deprecated void resetScores(OfflinePlayer player) throws java.lang.IllegalArgumentException
player
- the player to drop all current scores forjava.lang.IllegalArgumentException
- if player is nullresetScores(String)
void resetScores(java.lang.String entry) throws java.lang.IllegalArgumentException
entry
- the entry to drop all current scores forjava.lang.IllegalArgumentException
- if entry is null@Deprecated Team getPlayerTeam(OfflinePlayer player) throws java.lang.IllegalArgumentException
player
- the player to search forjava.lang.IllegalArgumentException
- if player is nullgetEntryTeam(String)
Team getEntryTeam(java.lang.String entry) throws java.lang.IllegalArgumentException
entry
- the entry to search forjava.lang.IllegalArgumentException
- if entry is nullTeam getTeam(java.lang.String teamName) throws java.lang.IllegalArgumentException
teamName
- Team namejava.lang.IllegalArgumentException
- if teamName is nulljava.util.Set<Team> getTeams()
Team registerNewTeam(java.lang.String name) throws java.lang.IllegalArgumentException
name
- Team namejava.lang.IllegalArgumentException
- if name is nulljava.lang.IllegalArgumentException
- if team by that name already exists@Deprecated java.util.Set<OfflinePlayer> getPlayers()
getEntries()
java.util.Set<java.lang.String> getEntries()
void clearSlot(DisplaySlot slot) throws java.lang.IllegalArgumentException
slot
- the slot to remove objectivesjava.lang.IllegalArgumentException
- if slot is nullCopyright © 2018. All rights reserved.