接口 Score
public interface Score
-
方法概要
修饰符和类型方法说明getEntry()
Gets the entry being tracked by this ScoreGets the Objective being tracked by this Score已过时。Scoreboards can contain entries that aren't playersint
getScore()
Gets the current scoreGets the scoreboard for the associated objective.boolean
Shows if this score has been set at any point in time.void
setScore
(int score) Sets the current score.
-
方法详细资料
-
getPlayer
已过时。Scoreboards can contain entries that aren't playersGets the OfflinePlayer being tracked by this Score- 返回:
- this Score's tracked player
- 另请参阅:
-
getEntry
String getEntry()Gets the entry being tracked by this Score- 返回:
- this Score's tracked entry
-
getObjective
Objective getObjective()Gets the Objective being tracked by this Score- 返回:
- this Score's tracked objective
-
getScore
Gets the current score- 返回:
- the current score
- 抛出:
IllegalStateException
- if the associated objective has been unregistered
-
setScore
Sets the current score.- 参数:
score
- New score- 抛出:
IllegalStateException
- if the associated objective has been unregistered
-
isScoreSet
Shows if this score has been set at any point in time.- 返回:
- if this score has been set before
- 抛出:
IllegalStateException
- if the associated objective has been unregistered
-
getScoreboard
Scoreboard getScoreboard()Gets the scoreboard for the associated objective.- 返回:
- the owning objective's scoreboard, or null if it has been
unregistered
-