Add Score.isScoreSet()Z API.

This commit is contained in:
md_5 2017-11-10 10:50:52 +11:00
parent ec4d4ef1e8
commit 4b9a4e2c98

View file

@ -51,6 +51,15 @@ public interface Score {
*/ */
void setScore(int score) throws IllegalStateException; void setScore(int score) throws IllegalStateException;
/**
* Shows if this score has been set at any point in time.
*
* @return if this score has been set before
* @throws IllegalStateException if the associated objective has been
* unregistered
*/
boolean isScoreSet() throws IllegalStateException;
/** /**
* Gets the scoreboard for the associated objective. * Gets the scoreboard for the associated objective.
* *