|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scoreboard
A scoreboard
Method Summary | |
---|---|
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 |
Method Detail |
---|
Objective registerNewObjective(String name, String criteria) throws IllegalArgumentException
name
- Name of the Objectivecriteria
- Criteria for the Objective
IllegalArgumentException
- if name is null
IllegalArgumentException
- if criteria is null
IllegalArgumentException
- if an objective by that name already
existsObjective getObjective(String name) throws IllegalArgumentException
name
- Name of the Objective
IllegalArgumentException
- if name is nullSet<Objective> getObjectivesByCriteria(String criteria) throws IllegalArgumentException
criteria
- Criteria to search by
IllegalArgumentException
Set<Objective> getObjectives()
Objective getObjective(DisplaySlot slot) throws IllegalArgumentException
slot
- The DisplaySlot
IllegalArgumentException
- if slot is null@Deprecated Set<Score> getScores(OfflinePlayer player) throws IllegalArgumentException
player
- the player whose scores are being retrieved
IllegalArgumentException
- if player is nullgetScores(String)
Set<Score> getScores(String entry) throws IllegalArgumentException
entry
- the entry whose scores are being retrieved
IllegalArgumentException
- if entry is null@Deprecated void resetScores(OfflinePlayer player) throws IllegalArgumentException
player
- the player to drop all current scores for
IllegalArgumentException
- if player is nullresetScores(String)
void resetScores(String entry) throws IllegalArgumentException
entry
- the entry to drop all current scores for
IllegalArgumentException
- if entry is nullTeam getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException
player
- the player to search for
IllegalArgumentException
- if player is nullTeam getTeam(String teamName) throws IllegalArgumentException
teamName
- Team name
IllegalArgumentException
- if teamName is nullSet<Team> getTeams()
Team registerNewTeam(String name) throws IllegalArgumentException
name
- Team name
IllegalArgumentException
- if name is null
IllegalArgumentException
- 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 objectives
IllegalArgumentException
- if slot is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |