| 1210 | } |
| 1211 | |
| 1212 | @Override |
| 1213 | public ScoreboardImpl getScoreboard() { |
| 1214 | if (getWorld() == null) { |
| 1215 | return null; |
| 1216 | } |
| 1217 | bch scoreboard = getWorld().ad(); |
| 1218 | if (scoreboard == null) { |
| 1219 | return null; |
| 1220 | } |
| 1221 | bcd objective = scoreboard.a(1); |
| 1222 | if (objective == null) { |
| 1223 | return null; |
| 1224 | } |
| 1225 | String displayName = objective.d(); |
| 1226 | Collection<bcf> scores = scoreboard.i(objective); |
| 1227 | HashMap<String, Integer> lines = Maps.newHashMap(); |
| 1228 | for (bcf score : scores) { |
| 1229 | lines.put(score.e(), score.c()); |
| 1230 | } |
| 1231 | return new ScoreboardImpl(displayName, lines); |
| 1232 | } |
| 1233 | |
| 1234 | @Override |
| 1235 | public ResourceManager getResourceManager() { |