public class ServerScoreboard extends Scoreboard
Modifier and Type | Class and Description |
---|---|
static class |
ServerScoreboard.Action |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ScoreObjective> |
addedObjectives |
private java.lang.Runnable[] |
dirtyRunnables |
private MinecraftServer |
server |
Constructor and Description |
---|
ServerScoreboard(MinecraftServer mcServer) |
addObjective, createTeam, entityHasObjective, forAllObjectives, func_197897_d, func_197902_i, func_197905_a, getDisplaySlotStrings, getObjective, getObjectiveDisplaySlot, getObjectiveDisplaySlotNumber, getObjectiveInDisplaySlot, getObjectiveNames, getObjectivesForEntity, getOrCreateObjective, getOrCreateScore, getPlayersTeam, getScoreObjectives, getSortedScores, getTeam, getTeamNames, getTeams, hasObjective, removeEntity, removeObjective, removeObjectiveFromEntity, removePlayerFromTeams, removeTeam
private final MinecraftServer server
private final java.util.Set<ScoreObjective> addedObjectives
private java.lang.Runnable[] dirtyRunnables
public ServerScoreboard(MinecraftServer mcServer)
public void onScoreChanged(Score scoreIn)
onScoreChanged
in class Scoreboard
public void onPlayerRemoved(java.lang.String scoreName)
onPlayerRemoved
in class Scoreboard
public void onPlayerScoreRemoved(java.lang.String scoreName, ScoreObjective objective)
onPlayerScoreRemoved
in class Scoreboard
public void setObjectiveInDisplaySlot(int objectiveSlot, @Nullable ScoreObjective objective)
setObjectiveInDisplaySlot
in class Scoreboard
public boolean addPlayerToTeam(java.lang.String p_197901_1_, ScorePlayerTeam p_197901_2_)
addPlayerToTeam
in class Scoreboard
public void removePlayerFromTeam(java.lang.String username, ScorePlayerTeam playerTeam)
removePlayerFromTeam
in class Scoreboard
public void onObjectiveAdded(ScoreObjective objective)
onObjectiveAdded
in class Scoreboard
public void onObjectiveChanged(ScoreObjective objective)
onObjectiveChanged
in class Scoreboard
public void onObjectiveRemoved(ScoreObjective objective)
onObjectiveRemoved
in class Scoreboard
public void onTeamAdded(ScorePlayerTeam playerTeam)
onTeamAdded
in class Scoreboard
public void onTeamChanged(ScorePlayerTeam playerTeam)
onTeamChanged
in class Scoreboard
public void onTeamRemoved(ScorePlayerTeam playerTeam)
onTeamRemoved
in class Scoreboard
public void addDirtyRunnable(java.lang.Runnable runnable)
protected void markSaveDataDirty()
public java.util.List<IPacket<?>> getCreatePackets(ScoreObjective objective)
public void addObjective(ScoreObjective objective)
public java.util.List<IPacket<?>> getDestroyPackets(ScoreObjective p_96548_1_)
public void sendDisplaySlotRemovalPackets(ScoreObjective p_96546_1_)
public int getObjectiveDisplaySlotCount(ScoreObjective p_96552_1_)