| 1178 | } |
| 1179 | |
| 1180 | @Override |
| 1181 | public ScoreboardImpl getScoreboard() { |
| 1182 | if (getWorld() == null) { |
| 1183 | return null; |
| 1184 | } |
| 1185 | bac scoreboard = getWorld().W(); |
| 1186 | if (scoreboard == null) { |
| 1187 | return null; |
| 1188 | } |
| 1189 | azx objective = scoreboard.a(1); |
| 1190 | if (objective == null) { |
| 1191 | return null; |
| 1192 | } |
| 1193 | String displayName = objective.d(); |
| 1194 | Collection<azz> scores = scoreboard.i(objective); |
| 1195 | HashMap<String, Integer> lines = Maps.newHashMap(); |
| 1196 | for (azz score : scores) { |
| 1197 | lines.put(score.e(), score.c()); |
| 1198 | } |
| 1199 | return new ScoreboardImpl(displayName, lines); |
| 1200 | } |
| 1201 | |
| 1202 | @Override |
| 1203 | public ResourceManager getResourceManager() { |