Package org.spongepowered.api.scoreboard
Interface Score
-
public interface ScoreA score entry for one or moreObjectives.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisLocked()Checks for whether the score is locked.Componentname()Gets the name of this score.Set<Objective>objectives()intscore()Gets the current score value.voidsetLocked(boolean locked)Sets this score as locked.voidsetScore(int score)Sets the current score value.
-
-
-
Method Detail
-
name
Component name()
Gets the name of this score.- Returns:
- The name of this score
-
score
int score()
Gets the current score value.- Returns:
- The current score value
-
setScore
void setScore(int score)
Sets the current score value.- Parameters:
score- The new score value
-
isLocked
boolean isLocked()
Checks for whether the score is locked.- Returns:
- True if the score is locked, false otherwise
-
setLocked
void setLocked(boolean locked)
Sets this score as locked.- Parameters:
locked- True to lock this score
-
-