Package net.minecraft.scoreboard
Class Scoreboard
java.lang.Object
net.minecraft.scoreboard.Scoreboard
- Direct Known Subclasses:
ServerScoreboard
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ScoreObjective[]
private static String[]
private final Map<ScoreCriteria,
List<ScoreObjective>> private final Map<String,
ScoreObjective> private final Map<String,
Map<ScoreObjective, Score>> private final Map<String,
ScorePlayerTeam> private final Map<String,
ScorePlayerTeam> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddObjective
(String p_199868_1_, ScoreCriteria p_199868_2_, ITextComponent p_199868_3_, ScoreCriteria.RenderType p_199868_4_) addPlayerTeam
(String p_96527_1_) boolean
addPlayerToTeam
(String p_197901_1_, ScorePlayerTeam p_197901_2_) void
entityRemoved
(Entity p_181140_1_) final void
forAllObjectives
(ScoreCriteria p_197893_1_, String p_197893_2_, Consumer<Score> p_197893_3_) getDisplayObjective
(int p_96539_1_) static int
getDisplaySlotByName
(String p_96537_0_) static String
getDisplaySlotName
(int p_96517_0_) static String[]
getObjective
(String p_96518_1_) getOrCreateObjective
(String p_197899_1_) getOrCreatePlayerScore
(String p_96529_1_, ScoreObjective p_96529_2_) getPlayerScores
(String p_96510_1_) getPlayerScores
(ScoreObjective p_96534_1_) getPlayersTeam
(String p_96509_1_) getPlayerTeam
(String p_96508_1_) boolean
hasObjective
(String p_197900_1_) boolean
hasPlayerScore
(String p_178819_1_, ScoreObjective p_178819_2_) protected void
loadPlayerScores
(ListNBT p_197905_1_) void
onObjectiveAdded
(ScoreObjective p_96522_1_) void
onObjectiveChanged
(ScoreObjective p_199869_1_) void
onObjectiveRemoved
(ScoreObjective p_96533_1_) void
onPlayerRemoved
(String p_96516_1_) void
onPlayerScoreRemoved
(String p_178820_1_, ScoreObjective p_178820_2_) void
onScoreChanged
(Score p_96536_1_) void
onTeamAdded
(ScorePlayerTeam p_96523_1_) void
onTeamChanged
(ScorePlayerTeam p_96538_1_) void
onTeamRemoved
(ScorePlayerTeam p_96513_1_) void
removeObjective
(ScoreObjective p_96519_1_) boolean
removePlayerFromTeam
(String p_96524_1_) void
removePlayerFromTeam
(String p_96512_1_, ScorePlayerTeam p_96512_2_) void
removePlayerTeam
(ScorePlayerTeam p_96511_1_) void
resetPlayerScore
(String p_178822_1_, ScoreObjective p_178822_2_) protected ListNBT
void
setDisplayObjective
(int p_96530_1_, ScoreObjective p_96530_2_)
-
Field Details
-
objectivesByName
-
objectivesByCriteria
-
playerScores
-
displayObjectives
-
teamsByName
-
teamsByPlayer
-
displaySlotNames
-
-
Constructor Details
-
Scoreboard
public Scoreboard()
-
-
Method Details
-
hasObjective
-
getOrCreateObjective
-
getObjective
-
addObjective
public ScoreObjective addObjective(String p_199868_1_, ScoreCriteria p_199868_2_, ITextComponent p_199868_3_, ScoreCriteria.RenderType p_199868_4_) -
forAllObjectives
public final void forAllObjectives(ScoreCriteria p_197893_1_, String p_197893_2_, Consumer<Score> p_197893_3_) -
hasPlayerScore
-
getOrCreatePlayerScore
-
getPlayerScores
-
getObjectives
-
getObjectiveNames
-
getTrackedPlayers
-
resetPlayerScore
-
getPlayerScores
-
removeObjective
-
setDisplayObjective
-
getDisplayObjective
-
getPlayerTeam
-
addPlayerTeam
-
removePlayerTeam
-
addPlayerToTeam
-
removePlayerFromTeam
-
removePlayerFromTeam
-
getTeamNames
-
getPlayerTeams
-
getPlayersTeam
-
onObjectiveAdded
-
onObjectiveChanged
-
onObjectiveRemoved
-
onScoreChanged
-
onPlayerRemoved
-
onPlayerScoreRemoved
-
onTeamAdded
-
onTeamChanged
-
onTeamRemoved
-
getDisplaySlotName
-
getDisplaySlotByName
-
getDisplaySlotNames
-
entityRemoved
-
savePlayerScores
-
loadPlayerScores
-