Package org.bukkit.scoreboard
Interface Scoreboard
public interface Scoreboard
A scoreboard
- 
Method SummaryModifier and TypeMethodDescriptionvoidclearSlot(DisplaySlot slot) Clears any objective in the specified slot.Gets all entries tracked by this ScoreboardgetEntryTeam(String entry) Gets a entries Team on this ScoreboardgetObjective(String name) Gets an Objective on this Scoreboard by namegetObjective(DisplaySlot slot) Gets the Objective currently displayed in a DisplaySlot on this ScoreboardGets all Objectives on this ScoreboardgetObjectivesByCriteria(String criteria) Deprecated.getObjectivesByCriteria(Criteria criteria) Gets all Objectives of a Criteria on the ScoreboardDeprecated.Scoreboards can contain entries that aren't playersgetPlayerTeam(OfflinePlayer player) Deprecated.Scoreboards can contain entries that aren't playersGets all scores for an entry on this ScoreboardgetScores(OfflinePlayer player) Deprecated.Scoreboards can contain entries that aren't playersGets a Team by name on this ScoreboardgetTeams()Gets all teams on this ScoreboardregisterNewObjective(String name, String criteria) Deprecated.a displayName should be explicitly specifiedregisterNewObjective(String name, String criteria, String displayName) Deprecated.registerNewObjective(String name, String criteria, String displayName, RenderType renderType) Deprecated.registerNewObjective(String name, Criteria criteria, String displayName) Registers an Objective on this ScoreboardregisterNewObjective(String name, Criteria criteria, String displayName, RenderType renderType) Registers an Objective on this ScoreboardregisterNewTeam(String name) Registers a Team on this ScoreboardvoidresetScores(String entry) Removes all scores for an entry on this ScoreboardvoidresetScores(OfflinePlayer player) Deprecated.Scoreboards can contain entries that aren't players
- 
Method Details- 
registerNewObjectiveDeprecated.a displayName should be explicitly specifiedRegisters an Objective on this Scoreboard- Parameters:
- name- Name of the Objective
- criteria- Criteria for the Objective
- Returns:
- The registered Objective
- Throws:
- IllegalArgumentException- if name is longer than 32767 characters.
- IllegalArgumentException- if an objective by that name already exists
 
- 
registerNewObjective@Deprecated @NotNull Objective registerNewObjective(@NotNull String name, @NotNull String criteria, @NotNull String displayName) Deprecated.Registers an Objective on this Scoreboard- Parameters:
- name- Name of the Objective
- criteria- Criteria for the Objective
- displayName- Name displayed to players for the Objective.
- Returns:
- The registered Objective
- Throws:
- IllegalArgumentException- if name is longer than 32767 characters.
- IllegalArgumentException- if an objective by that name already exists
 
- 
registerNewObjective@Deprecated @NotNull Objective registerNewObjective(@NotNull String name, @NotNull String criteria, @NotNull String displayName, @NotNull RenderType renderType) Deprecated.Registers an Objective on this Scoreboard- Parameters:
- name- Name of the Objective
- criteria- Criteria for the Objective
- displayName- Name displayed to players for the Objective.
- renderType- Manner of rendering the Objective
- Returns:
- The registered Objective
- Throws:
- IllegalArgumentException- if name is longer than 32767 characters.
- IllegalArgumentException- if an objective by that name already exists
 
- 
registerNewObjective@NotNull Objective registerNewObjective(@NotNull String name, @NotNull Criteria criteria, @NotNull String displayName) Registers an Objective on this Scoreboard- Parameters:
- name- Name of the Objective
- criteria- Criteria for the Objective
- displayName- Name displayed to players for the Objective.
- Returns:
- The registered Objective
- Throws:
- IllegalArgumentException- if name is longer than 32767 characters.
- IllegalArgumentException- if an objective by that name already exists
 
- 
registerNewObjective@NotNull Objective registerNewObjective(@NotNull String name, @NotNull Criteria criteria, @NotNull String displayName, @NotNull RenderType renderType) Registers an Objective on this Scoreboard- Parameters:
- name- Name of the Objective
- criteria- Criteria for the Objective
- displayName- Name displayed to players for the Objective.
- renderType- Manner of rendering the Objective
- Returns:
- The registered Objective
- Throws:
- IllegalArgumentException- if name is longer than 32767 characters.
- IllegalArgumentException- if an objective by that name already exists
 
- 
getObjectiveGets an Objective on this Scoreboard by name- Parameters:
- name- Name of the Objective
- Returns:
- the Objective or null if it does not exist
 
- 
getObjectivesByCriteriaDeprecated.Gets all Objectives of a Criteria on the Scoreboard- Parameters:
- criteria- Criteria to search by
- Returns:
- an immutable set of Objectives using the specified Criteria
 
- 
getObjectivesByCriteriaGets all Objectives of a Criteria on the Scoreboard- Parameters:
- criteria- Criteria to search by
- Returns:
- an immutable set of Objectives using the specified Criteria
 
- 
getObjectivesGets all Objectives on this Scoreboard- Returns:
- An immutable set of all Objectives on this Scoreboard
 
- 
getObjectiveGets the Objective currently displayed in a DisplaySlot on this Scoreboard- Parameters:
- slot- The DisplaySlot
- Returns:
- the Objective currently displayed or null if nothing is displayed in that DisplaySlot
 
- 
getScoresDeprecated.Scoreboards can contain entries that aren't playersGets all scores for a player on this Scoreboard- Parameters:
- player- the player whose scores are being retrieved
- Returns:
- immutable set of all scores tracked for the player
- See Also:
 
- 
getScoresGets all scores for an entry on this Scoreboard- Parameters:
- entry- the entry whose scores are being retrieved
- Returns:
- immutable set of all scores tracked for the entry
 
- 
resetScoresDeprecated.Scoreboards can contain entries that aren't playersRemoves all scores for a player on this Scoreboard- Parameters:
- player- the player to drop all current scores for
- See Also:
 
- 
resetScoresRemoves all scores for an entry on this Scoreboard- Parameters:
- entry- the entry to drop all current scores for
 
- 
getPlayerTeamDeprecated.Scoreboards can contain entries that aren't playersGets a player's Team on this Scoreboard- Parameters:
- player- the player to search for
- Returns:
- the player's Team or null if the player is not on a team
- See Also:
 
- 
getEntryTeamGets a entries Team on this Scoreboard- Parameters:
- entry- the entry to search for
- Returns:
- the entries Team or null if the entry is not on a team
 
- 
getTeamGets a Team by name on this Scoreboard- Parameters:
- teamName- Team name
- Returns:
- the matching Team or null if no matches
 
- 
getTeamsGets all teams on this Scoreboard- Returns:
- an immutable set of Teams
 
- 
registerNewTeamRegisters a Team on this Scoreboard- Parameters:
- name- Team name
- Returns:
- registered Team
- Throws:
- IllegalArgumentException- if team by that name already exists
 
- 
getPlayersDeprecated.Scoreboards can contain entries that aren't playersGets all players tracked by this Scoreboard- Returns:
- immutable set of all tracked players
- See Also:
 
- 
getEntriesGets all entries tracked by this Scoreboard- Returns:
- immutable set of all tracked entries
 
- 
clearSlotClears any objective in the specified slot.- Parameters:
- slot- the slot to remove objectives
 
 
- 
getObjectivesByCriteria(Criteria)