Package org.bukkit.scoreboard
Interface Score
public interface Score
- 
Method SummaryModifier and Type Method Description StringgetEntry()Gets the entry being tracked by this ScoreObjectivegetObjective()Gets the Objective being tracked by this ScoreOfflinePlayergetPlayer()Deprecated.Scoreboards can contain entries that aren't playersintgetScore()Gets the current scoreScoreboardgetScoreboard()Gets the scoreboard for the associated objective.booleanisScoreSet()Shows if this score has been set at any point in time.voidsetScore(int score)Sets the current score.
- 
Method Details- 
getPlayerDeprecated.Scoreboards can contain entries that aren't playersGets the OfflinePlayer being tracked by this Score- Returns:
- this Score's tracked player
- See Also:
- getEntry()
 
- 
getEntryGets the entry being tracked by this Score- Returns:
- this Score's tracked entry
 
- 
getObjectiveGets the Objective being tracked by this Score- Returns:
- this Score's tracked objective
 
- 
getScoreGets the current score- Returns:
- the current score
- Throws:
- IllegalStateException- if the associated objective has been unregistered
 
- 
setScoreSets the current score.- Parameters:
- score- New score
- Throws:
- IllegalStateException- if the associated objective has been unregistered
 
- 
isScoreSetShows if this score has been set at any point in time.- Returns:
- if this score has been set before
- Throws:
- IllegalStateException- if the associated objective has been unregistered
 
- 
getScoreboardGets the scoreboard for the associated objective.- Returns:
- the owning objective's scoreboard, or null if it has been
     unregistered
 
 
-