Package net.minecraft.scoreboard
Class ServerScoreboard
- java.lang.Object
-
- net.minecraft.scoreboard.Scoreboard
-
- net.minecraft.scoreboard.ServerScoreboard
-
public class ServerScoreboard extends Scoreboard
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerScoreboard.Action
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Runnable[]
dirtyListeners
private MinecraftServer
server
private java.util.Set<ScoreObjective>
trackedObjectives
-
Constructor Summary
Constructors Constructor Description ServerScoreboard(MinecraftServer p_i1501_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDirtyListener(java.lang.Runnable p_186684_1_)
boolean
addPlayerToTeam(java.lang.String p_197901_1_, ScorePlayerTeam p_197901_2_)
int
getObjectiveDisplaySlotCount(ScoreObjective p_96552_1_)
java.util.List<IPacket<?>>
getStartTrackingPackets(ScoreObjective p_96550_1_)
java.util.List<IPacket<?>>
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(java.lang.String p_96516_1_)
void
onPlayerScoreRemoved(java.lang.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(java.lang.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 Detail
-
server
private final MinecraftServer server
-
trackedObjectives
private final java.util.Set<ScoreObjective> trackedObjectives
-
dirtyListeners
private java.lang.Runnable[] dirtyListeners
-
-
Constructor Detail
-
ServerScoreboard
public ServerScoreboard(MinecraftServer p_i1501_1_)
-
-
Method Detail
-
onScoreChanged
public void onScoreChanged(Score p_96536_1_)
- Overrides:
onScoreChanged
in classScoreboard
-
onPlayerRemoved
public void onPlayerRemoved(java.lang.String p_96516_1_)
- Overrides:
onPlayerRemoved
in classScoreboard
-
onPlayerScoreRemoved
public void onPlayerScoreRemoved(java.lang.String p_178820_1_, ScoreObjective p_178820_2_)
- Overrides:
onPlayerScoreRemoved
in classScoreboard
-
setDisplayObjective
public void setDisplayObjective(int p_96530_1_, @Nullable ScoreObjective p_96530_2_)
- Overrides:
setDisplayObjective
in classScoreboard
-
addPlayerToTeam
public boolean addPlayerToTeam(java.lang.String p_197901_1_, ScorePlayerTeam p_197901_2_)
- Overrides:
addPlayerToTeam
in classScoreboard
-
removePlayerFromTeam
public void removePlayerFromTeam(java.lang.String p_96512_1_, ScorePlayerTeam p_96512_2_)
- Overrides:
removePlayerFromTeam
in classScoreboard
-
onObjectiveAdded
public void onObjectiveAdded(ScoreObjective p_96522_1_)
- Overrides:
onObjectiveAdded
in classScoreboard
-
onObjectiveChanged
public void onObjectiveChanged(ScoreObjective p_199869_1_)
- Overrides:
onObjectiveChanged
in classScoreboard
-
onObjectiveRemoved
public void onObjectiveRemoved(ScoreObjective p_96533_1_)
- Overrides:
onObjectiveRemoved
in classScoreboard
-
onTeamAdded
public void onTeamAdded(ScorePlayerTeam p_96523_1_)
- Overrides:
onTeamAdded
in classScoreboard
-
onTeamChanged
public void onTeamChanged(ScorePlayerTeam p_96538_1_)
- Overrides:
onTeamChanged
in classScoreboard
-
onTeamRemoved
public void onTeamRemoved(ScorePlayerTeam p_96513_1_)
- Overrides:
onTeamRemoved
in classScoreboard
-
addDirtyListener
public void addDirtyListener(java.lang.Runnable p_186684_1_)
-
setDirty
protected void setDirty()
-
getStartTrackingPackets
public java.util.List<IPacket<?>> getStartTrackingPackets(ScoreObjective p_96550_1_)
-
startTrackingObjective
public void startTrackingObjective(ScoreObjective p_96549_1_)
-
getStopTrackingPackets
public java.util.List<IPacket<?>> getStopTrackingPackets(ScoreObjective p_96548_1_)
-
stopTrackingObjective
public void stopTrackingObjective(ScoreObjective p_96546_1_)
-
getObjectiveDisplaySlotCount
public int getObjectiveDisplaySlotCount(ScoreObjective p_96552_1_)
-
-