public class Score
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Score> |
SCORE_COMPARATOR |
Constructor and Description |
---|
Score(Scoreboard scoreboard,
ScoreObjective objective,
java.lang.String playerName) |
Modifier and Type | Method and Description |
---|---|
ScoreObjective |
getObjective() |
java.lang.String |
getPlayerName() |
int |
getScorePoints() |
Scoreboard |
getScoreScoreboard() |
void |
increaseScore(int amount) |
void |
incrementScore() |
boolean |
isLocked() |
void |
reset() |
void |
setLocked(boolean locked) |
void |
setScorePoints(int points) |
public static final java.util.Comparator<Score> SCORE_COMPARATOR
public Score(Scoreboard scoreboard, ScoreObjective objective, java.lang.String playerName)
public void increaseScore(int amount)
public void incrementScore()
public int getScorePoints()
public void reset()
public void setScorePoints(int points)
@Nullable public ScoreObjective getObjective()
public java.lang.String getPlayerName()
public Scoreboard getScoreScoreboard()
public boolean isLocked()
public void setLocked(boolean locked)