diff options
author | md_5 <git@md-5.net> | 2017-11-10 10:50:52 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-11-10 10:50:52 +1100 |
commit | 4b9a4e2c98fc834340dd49c29b25a503a131c7ca (patch) | |
tree | d92510621d7bfb2285294afad5816566ea995cb5 /src/main/java | |
parent | ec4d4ef1e8934127a14f521e3633d254a9135009 (diff) | |
download | bukkit-4b9a4e2c98fc834340dd49c29b25a503a131c7ca.tar bukkit-4b9a4e2c98fc834340dd49c29b25a503a131c7ca.tar.gz bukkit-4b9a4e2c98fc834340dd49c29b25a503a131c7ca.tar.lz bukkit-4b9a4e2c98fc834340dd49c29b25a503a131c7ca.tar.xz bukkit-4b9a4e2c98fc834340dd49c29b25a503a131c7ca.zip |
Add Score.isScoreSet()Z API.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/scoreboard/Score.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/scoreboard/Score.java b/src/main/java/org/bukkit/scoreboard/Score.java index 4c103468..f7b86b40 100644 --- a/src/main/java/org/bukkit/scoreboard/Score.java +++ b/src/main/java/org/bukkit/scoreboard/Score.java @@ -52,6 +52,15 @@ public interface Score { 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. * * @return the owning objective's scoreboard, or null if it has been |