org.bukkit.scoreboard
public interface Score
Modifier and Type | Method and Description |
---|---|
Objective |
getObjective()
Gets the Objective being tracked by this Score
|
OfflinePlayer |
getPlayer()
Gets the OfflinePlayer being tracked by this Score
|
int |
getScore()
Gets the current score
|
Scoreboard |
getScoreboard()
Gets the scoreboard for the associated objective.
|
void |
setScore(int score)
Sets the current score.
|
OfflinePlayer getPlayer()
Objective getObjective()
int getScore() throws IllegalStateException
IllegalStateException
- if the associated objective has been
unregisteredvoid setScore(int score) throws IllegalStateException
score
- New scoreIllegalStateException
- if the associated objective has been
unregisteredScoreboard getScoreboard()
unregistered
Copyright © 2014. All rights reserved.