| 1227 | } |
| 1228 | |
| 1229 | @Override |
| 1230 | public ScoreboardImpl getScoreboard() { |
| 1231 | if (getWorld() == null) { |
| 1232 | return null; |
| 1233 | } |
| 1234 | bhi scoreboard = getWorld().af(); |
| 1235 | if (scoreboard == null) { |
| 1236 | return null; |
| 1237 | } |
| 1238 | bhe objective = scoreboard.a(1); |
| 1239 | if (objective == null) { |
| 1240 | return null; |
| 1241 | } |
| 1242 | String displayName = objective.d(); |
| 1243 | Collection<bhg> scores = scoreboard.i(objective); |
| 1244 | HashMap<String, Integer> lines = Maps.newHashMap(); |
| 1245 | for (bhg score : scores) { |
| 1246 | lines.put(score.e(), score.c()); |
| 1247 | } |
| 1248 | return new ScoreboardImpl(displayName, lines); |
| 1249 | } |
| 1250 | |
| 1251 | @Override |
| 1252 | public ResourceManager getResourceManager() { |