public interface Score
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getEntry()
Gets the entry being tracked by this Score
|
Objective |
getObjective()
Gets the Objective being tracked by this Score
|
OfflinePlayer |
getPlayer()
已过时。
Scoreboards can contain entries that aren't players
|
int |
getScore()
Gets the current score
|
Scoreboard |
getScoreboard()
Gets the scoreboard for the associated objective.
|
boolean |
isScoreSet()
Shows if this score has been set at any point in time.
|
void |
setScore(int score)
Sets the current score.
|
@Deprecated OfflinePlayer getPlayer()
getEntry()java.lang.String getEntry()
Objective getObjective()
int getScore()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the associated objective has been
unregisteredvoid setScore(int score)
throws java.lang.IllegalStateException
score - New scorejava.lang.IllegalStateException - if the associated objective has been
unregisteredboolean isScoreSet()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the associated objective has been
unregisteredScoreboard getScoreboard()
unregistered