Skip to content

Commit 18df672

Browse files
Add missing locked field in Score class (#2262)
1 parent 665629e commit 18df672

File tree

1 file changed

+14
-0
lines changed
  • src/main/java/org/spongepowered/api/scoreboard

1 file changed

+14
-0
lines changed

src/main/java/org/spongepowered/api/scoreboard/Score.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ public interface Score {
5555
*/
5656
void setScore(int score);
5757

58+
/**
59+
* Checks for whether the score is locked.
60+
*
61+
* @return True if the score is locked, false otherwise
62+
*/
63+
boolean isLocked();
64+
65+
/**
66+
* Sets this score as locked.
67+
*
68+
* @param locked True to lock this score
69+
*/
70+
void setLocked(boolean locked);
71+
5872
/**
5973
* Returns a {@link Set} of parent {@link Objective}s this {@link Score} is
6074
* registered to.

0 commit comments

Comments
 (0)