mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Add Score.isScoreSet()Z API.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
7f32fecc86
commit
2ec3448bdf
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue