public class ServerScoreboard extends Scoreboard
Constructor and Description |
---|
ServerScoreboard(MinecraftServer mcServer) |
addScoreObjective, createTeam, entityHasObjective, getDisplaySlotStrings, getObjective, getObjectiveDisplaySlot, getObjectiveDisplaySlotNumber, getObjectiveInDisplaySlot, getObjectiveNames, getObjectivesForEntity, getObjectivesFromCriteria, getOrCreateScore, getPlayersTeam, getScoreObjectives, getScores, getSortedScores, getTeam, getTeamNames, getTeams, removeEntity, removeObjective, removeObjectiveFromEntity, removePlayerFromTeams, removeTeam
public ServerScoreboard(MinecraftServer mcServer)
public void onScoreUpdated(Score scoreIn)
onScoreUpdated
in class Scoreboard
public void broadcastScoreUpdate(java.lang.String scoreName)
broadcastScoreUpdate
in class Scoreboard
public void broadcastScoreUpdate(java.lang.String scoreName, ScoreObjective objective)
broadcastScoreUpdate
in class Scoreboard
public void setObjectiveInDisplaySlot(int objectiveSlot, ScoreObjective objective)
setObjectiveInDisplaySlot
in class Scoreboard
public boolean addPlayerToTeam(java.lang.String player, java.lang.String newTeam)
addPlayerToTeam
in class Scoreboard
public void removePlayerFromTeam(java.lang.String username, ScorePlayerTeam playerTeam)
removePlayerFromTeam
in class Scoreboard
public void onScoreObjectiveAdded(ScoreObjective scoreObjectiveIn)
onScoreObjectiveAdded
in class Scoreboard
public void onObjectiveDisplayNameChanged(ScoreObjective objective)
onObjectiveDisplayNameChanged
in class Scoreboard
public void onScoreObjectiveRemoved(ScoreObjective objective)
onScoreObjectiveRemoved
in class Scoreboard
public void broadcastTeamCreated(ScorePlayerTeam playerTeam)
broadcastTeamCreated
in class Scoreboard
public void broadcastTeamInfoUpdate(ScorePlayerTeam playerTeam)
broadcastTeamInfoUpdate
in class Scoreboard
public void broadcastTeamRemove(ScorePlayerTeam playerTeam)
broadcastTeamRemove
in class Scoreboard
public void addDirtyRunnable(java.lang.Runnable runnable)
protected void markSaveDataDirty()
public java.util.List<Packet<?>> getCreatePackets(ScoreObjective objective)
public void addObjective(ScoreObjective objective)
public java.util.List<Packet<?>> getDestroyPackets(ScoreObjective p_96548_1_)
public void sendDisplaySlotRemovalPackets(ScoreObjective p_96546_1_)
public int getObjectiveDisplaySlotCount(ScoreObjective p_96552_1_)