public class ScoreboardConstructors
public Scoreboard()Methods
void addObjective(Objective)void addPlayerScore(PlayerScore)Scoreboard fromNbt(NbtCompound)int getDataVersion()Returns the dataVersion value.Map<String, String> getDisplaySlots()Returns the displaySlots value.List<Objective> getObjectives()Returns the objectives value.List<PlayerScore> getPlayerScores()Returns the playerScores value.void putDisplaySlot(String, String)void removeDisplaySlot(String)void removeObjective(Objective)void removePlayerScore(PlayerScore)void setDataVersion(int)Sets the dataVersion value.NbtCompound toNbt()public void addObjective(Objective objective)| Parameters | ||
|---|---|---|
objective | Objective | |
public void addPlayerScore(PlayerScore playerScore)| Parameters | ||
|---|---|---|
playerScore | PlayerScore | |
public static Scoreboard fromNbt(NbtCompound nbt)| Parameters | ||
|---|---|---|
nbt | NbtCompound | |
| Returns | ||
Scoreboard | ||
getDataVersion()
lombokSource
public int getDataVersion()Returns the dataVersion value.
| Returns | ||
|---|---|---|
int | ||
Generated by Lombok's @Getter for the field dataVersion
getDisplaySlots()
lombokSource
public Map<String, String> getDisplaySlots()getObjectives()
lombokSource
public List<Objective> getObjectives()getPlayerScores()
lombokSource
public List<PlayerScore> getPlayerScores()Returns the playerScores value.
| Returns | ||
|---|---|---|
List<PlayerScore> | ||
Generated by Lombok's @Getter for the field playerScores
public void putDisplaySlot(String key, String value)public void removeDisplaySlot(String key)| Parameters | ||
|---|---|---|
key | String | |
public void removeObjective(Objective objective)| Parameters | ||
|---|---|---|
objective | Objective | |
public void removePlayerScore(PlayerScore playerScore)| Parameters | ||
|---|---|---|
playerScore | PlayerScore | |
public void setDataVersion(int dataVersion)Sets the dataVersion value.
| Parameters | ||
|---|---|---|
dataVersion | int | |
Generated by Lombok's @Setter for the field dataVersion
public NbtCompound toNbt()| Returns | ||
|---|---|---|
NbtCompound | ||
Nested types
Used by
Methods of other types that accept or return Scoreboard.