public class ScoreboardPlayerScore extends Object
Modifier and Type | Field and Description |
---|---|
static Comparator<ScoreboardPlayerScore> |
COMPARATOR |
private boolean |
forceUpdate |
private boolean |
locked |
private ScoreboardObjective |
objective |
private String |
playerName |
private int |
score |
private Scoreboard |
scoreboard |
Constructor and Description |
---|
ScoreboardPlayerScore(Scoreboard scoreboard,
ScoreboardObjective objective,
String playerName) |
Modifier and Type | Method and Description |
---|---|
void |
clearScore() |
ScoreboardObjective |
getObjective() |
String |
getPlayerName() |
int |
getScore() |
Scoreboard |
getScoreboard() |
void |
incrementScore() |
void |
incrementScore(int int2) |
boolean |
isLocked() |
void |
setLocked(boolean locked) |
void |
setScore(int score) |
public static final Comparator<ScoreboardPlayerScore> COMPARATOR
private final Scoreboard scoreboard
@Nullable private final ScoreboardObjective objective
private final String playerName
private int score
private boolean locked
private boolean forceUpdate
public ScoreboardPlayerScore(Scoreboard scoreboard, ScoreboardObjective objective, String playerName)
public void incrementScore(int int2)
public void incrementScore()
public int getScore()
public void clearScore()
public void setScore(int score)
@Nullable public ScoreboardObjective getObjective()
public String getPlayerName()
public Scoreboard getScoreboard()
public boolean isLocked()
public void setLocked(boolean locked)