public class Score
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
forceUpdate |
private boolean |
locked |
private ScoreObjective |
objective |
static java.util.Comparator<Score> |
SCORE_COMPARATOR |
private Scoreboard |
scoreboard |
private java.lang.String |
scorePlayerName |
private int |
scorePoints |
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
private final Scoreboard scoreboard
@Nullable private final ScoreObjective objective
private final java.lang.String scorePlayerName
private int scorePoints
private boolean locked
private boolean forceUpdate
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)