|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Score
A score entry for a player
on an objective
. Changing this will not affect any other
objective or scoreboard.
Method Summary | |
---|---|
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. |
Method Detail |
---|
OfflinePlayer getPlayer()
Objective getObjective()
int getScore() throws IllegalStateException
IllegalStateException
- if the associated objective has been
unregisteredvoid setScore(int score) throws IllegalStateException
score
- New score
IllegalStateException
- if the associated objective has been
unregisteredScoreboard getScoreboard()
unregistered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |