public Collection<ScoreboardScore> getScoreboardScores(IScoreboardCriteria criteria, String name, Collection<ScoreboardScore> collection) { for (CraftScoreboard scoreboard : scoreboards) { Scoreboard board = scoreboard.board; for (ScoreboardObjective objective : (Iterable<ScoreboardObjective>) board.getObjectivesForCriteria(criteria)) { collection.add(board.getPlayerScoreForObjective(name, objective)); } } return collection; }
private CraftCriteria(IScoreboardCriteria criteria) { this.criteria = criteria; this.bukkitName = criteria.getName(); }
public void updateAllScoresForList(IScoreboardCriteria criteria, String name, List<EntityPlayer> of) { for (ScoreboardScore score : getScoreboardScores(criteria, name, new ArrayList<ScoreboardScore>())) { score.updateForList(of); } }
public void updateAllScoresForList(IScoreboardCriteria criteria, String name, List<EntityPlayer> of) { for (ScoreboardScore score : getScoreboardScores(criteria, name, new ArrayList<ScoreboardScore>())) { score.updateForList((List) of); } }