| 1183 | } |
| 1184 | |
| 1185 | @Override |
| 1186 | public ScoreboardImpl getScoreboard() { |
| 1187 | if (getWorld() == null) { |
| 1188 | return null; |
| 1189 | } |
| 1190 | bsd scoreboard = getWorld().Z(); |
| 1191 | if (scoreboard == null) { |
| 1192 | return null; |
| 1193 | } |
| 1194 | bry objective = scoreboard.a(1); |
| 1195 | if (objective == null) { |
| 1196 | return null; |
| 1197 | } |
| 1198 | String displayName = objective.d(); |
| 1199 | Collection<bsa> scores = scoreboard.i(objective); |
| 1200 | HashMap<String, Integer> lines = Maps.newHashMap(); |
| 1201 | for (bsa score : scores) { |
| 1202 | lines.put(score.e(), score.c()); |
| 1203 | } |
| 1204 | return new ScoreboardImpl(displayName, lines); |
| 1205 | } |
| 1206 | |
| 1207 | @Override |
| 1208 | public ResourceManager getResourceManager() { |