classinternallombokSource
public class Scoreboard

Constructors

public Scoreboard()

Methods

public void addObjective(Objective objective)
Parameters
objectiveObjective
public void addPlayerScore(PlayerScore playerScore)
Parameters
playerScorePlayerScore
public static Scoreboard fromNbt(NbtCompound nbt)
Parameters
nbtNbtCompound
Returns
Scoreboard
public int getDataVersion()

Returns the dataVersion value.

Returns
int

Generated by Lombok's @Getter for the field dataVersion

public Map<String, String> getDisplaySlots()

Returns the displaySlots value.

Returns
Map<String, String>

Generated by Lombok's @Getter for the field displaySlots

public List<Objective> getObjectives()

Returns the objectives value.

Returns
List<Objective>

Generated by Lombok's @Getter for the field objectives

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)
Parameters
keyString
valueString
public void removeDisplaySlot(String key)
Parameters
keyString
public void removeObjective(Objective objective)
Parameters
objectiveObjective
public void removePlayerScore(PlayerScore playerScore)
Parameters
playerScorePlayerScore
public void setDataVersion(int dataVersion)

Sets the dataVersion value.

Parameters
dataVersionint

Generated by Lombok's @Setter for the field dataVersion

public NbtCompound toNbt()

Nested types

Used by

Methods of other types that accept or return Scoreboard.