Package net.minecraft.scoreboard
Class ServerScoreboard
java.lang.Object
net.minecraft.scoreboard.Scoreboard
net.minecraft.scoreboard.ServerScoreboard
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate Runnable[]
private final MinecraftServer
private final Set<ScoreObjective>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDirtyListener
(Runnable p_186684_1_) boolean
addPlayerToTeam
(String p_197901_1_, ScorePlayerTeam p_197901_2_) int
getObjectiveDisplaySlotCount
(ScoreObjective p_96552_1_) getStartTrackingPackets
(ScoreObjective p_96550_1_) getStopTrackingPackets
(ScoreObjective p_96548_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
removePlayerFromTeam
(String p_96512_1_, ScorePlayerTeam p_96512_2_) protected void
setDirty()
void
setDisplayObjective
(int p_96530_1_, ScoreObjective p_96530_2_) void
startTrackingObjective
(ScoreObjective p_96549_1_) void
stopTrackingObjective
(ScoreObjective p_96546_1_) Methods inherited from class net.minecraft.scoreboard.Scoreboard
addObjective, addPlayerTeam, entityRemoved, forAllObjectives, getDisplayObjective, getDisplaySlotByName, getDisplaySlotName, getDisplaySlotNames, getObjective, getObjectiveNames, getObjectives, getOrCreateObjective, getOrCreatePlayerScore, getPlayerScores, getPlayerScores, getPlayersTeam, getPlayerTeam, getPlayerTeams, getTeamNames, getTrackedPlayers, hasObjective, hasPlayerScore, loadPlayerScores, removeObjective, removePlayerFromTeam, removePlayerTeam, resetPlayerScore, savePlayerScores
-
Field Details
-
server
-
trackedObjectives
-
dirtyListeners
-
-
Constructor Details
-
ServerScoreboard
-
-
Method Details
-
onScoreChanged
- Overrides:
onScoreChanged
in classScoreboard
-
onPlayerRemoved
- Overrides:
onPlayerRemoved
in classScoreboard
-
onPlayerScoreRemoved
- Overrides:
onPlayerScoreRemoved
in classScoreboard
-
setDisplayObjective
- Overrides:
setDisplayObjective
in classScoreboard
-
addPlayerToTeam
- Overrides:
addPlayerToTeam
in classScoreboard
-
removePlayerFromTeam
- Overrides:
removePlayerFromTeam
in classScoreboard
-
onObjectiveAdded
- Overrides:
onObjectiveAdded
in classScoreboard
-
onObjectiveChanged
- Overrides:
onObjectiveChanged
in classScoreboard
-
onObjectiveRemoved
- Overrides:
onObjectiveRemoved
in classScoreboard
-
onTeamAdded
- Overrides:
onTeamAdded
in classScoreboard
-
onTeamChanged
- Overrides:
onTeamChanged
in classScoreboard
-
onTeamRemoved
- Overrides:
onTeamRemoved
in classScoreboard
-
addDirtyListener
-
setDirty
protected void setDirty() -
getStartTrackingPackets
-
startTrackingObjective
-
getStopTrackingPackets
-
stopTrackingObjective
-
getObjectiveDisplaySlotCount
-