Package net.minecraft.world.scores
Class Scoreboard
java.lang.Object
net.minecraft.world.scores.Scoreboard
- Direct Known Subclasses:
ServerScoreboard
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<DisplaySlot,
Objective> private static final org.slf4j.Logger
private final Map<ObjectiveCriteria,
List<Objective>> private final Map<String,
PlayerTeam> private final Map<String,
PlayerTeam> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddObjective
(String p_83437_, ObjectiveCriteria p_83438_, Component p_83439_, ObjectiveCriteria.RenderType p_83440_) addPlayerTeam
(String p_83493_) boolean
addPlayerToTeam
(String p_83434_, PlayerTeam p_83435_) void
entityRemoved
(Entity p_83421_) final void
forAllObjectives
(ObjectiveCriteria p_83428_, String p_83429_, Consumer<Score> p_83430_) getDisplayObjective
(DisplaySlot p_297931_) getObjective
(String p_83478_) getOrCreatePlayerScore
(String p_83472_, Objective p_83473_) getPlayerScores
(String p_83484_) getPlayerScores
(Objective p_83499_) getPlayersTeam
(String p_83501_) getPlayerTeam
(String p_83490_) boolean
hasPlayerScore
(String p_83462_, Objective p_83463_) protected void
loadPlayerScores
(ListTag p_83446_) void
onObjectiveAdded
(Objective p_83422_) void
onObjectiveChanged
(Objective p_83455_) void
onObjectiveRemoved
(Objective p_83467_) void
onPlayerRemoved
(String p_83431_) void
onPlayerScoreRemoved
(String p_83432_, Objective p_83433_) void
onScoreChanged
(Score p_83424_) void
onTeamAdded
(PlayerTeam p_83423_) void
onTeamChanged
(PlayerTeam p_83456_) void
onTeamRemoved
(PlayerTeam p_83468_) void
removeObjective
(Objective p_83503_) boolean
removePlayerFromTeam
(String p_83496_) void
removePlayerFromTeam
(String p_83464_, PlayerTeam p_83465_) void
removePlayerTeam
(PlayerTeam p_83476_) void
resetPlayerScore
(String p_83480_, Objective p_83481_) protected ListTag
void
setDisplayObjective
(DisplaySlot p_297926_, Objective p_83419_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
objectivesByName
-
objectivesByCriteria
-
playerScores
-
displayObjectives
-
teamsByName
-
teamsByPlayer
-
-
Constructor Details
-
Scoreboard
public Scoreboard()
-
-
Method Details
-
getObjective
-
addObjective
public Objective addObjective(String p_83437_, ObjectiveCriteria p_83438_, Component p_83439_, ObjectiveCriteria.RenderType p_83440_) -
forAllObjectives
public final void forAllObjectives(ObjectiveCriteria p_83428_, String p_83429_, Consumer<Score> p_83430_) -
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
-
entityRemoved
-
savePlayerScores
-
loadPlayerScores
-