|
||||||||||
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. |
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()
Gets all players tracked by this Scoreboard |
Team |
getPlayerTeam(OfflinePlayer player)
Gets a player's Team on this Scoreboard |
Set<Score> |
getScores(OfflinePlayer player)
Gets all scores for a player 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)
Removes all scores for a player 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 nullSet<Score> getScores(OfflinePlayer player) throws IllegalArgumentException
player
- the player whose scores are being retrieved
IllegalArgumentException
- if player is nullvoid resetScores(OfflinePlayer player) throws IllegalArgumentException
player
- the player to drop all current scores
IllegalArgumentException
- if player 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 existsSet<OfflinePlayer> getPlayers()
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 |