| 1243 | } |
| 1244 | |
| 1245 | @Override |
| 1246 | public ScoreboardImpl getScoreboard() { |
| 1247 | if (getWorld() == null) { |
| 1248 | return null; |
| 1249 | } |
| 1250 | cer scoreboard = getWorld().F(); |
| 1251 | if (scoreboard == null) { |
| 1252 | return null; |
| 1253 | } |
| 1254 | ceo objective = scoreboard.a(1); |
| 1255 | if (objective == null) { |
| 1256 | return null; |
| 1257 | } |
| 1258 | String displayName = objective.d().getString(); |
| 1259 | Collection<ceq> scores = scoreboard.i(objective); |
| 1260 | HashMap<String, Integer> lines = Maps.newHashMap(); |
| 1261 | for (ceq score : scores) { |
| 1262 | lines.put(score.e(), score.b()); |
| 1263 | } |
| 1264 | return new ScoreboardImpl(displayName, lines); |
| 1265 | } |
| 1266 | |
| 1267 | @Override |
| 1268 | public ResourceManager getResourceManager() { |