mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 18:19:24 +01:00
Add Score.isScoreSet()Z API.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
7f32fecc86
commit
2ec3448bdf
@ -51,6 +51,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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user