MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / getScoreboard

Method getScoreboard

Minecraft-Utils/1.10/src/Variables.java:1212–1232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 6

getWorldMethod · 0.95
putMethod · 0.80
aMethod · 0.45
dMethod · 0.45
eMethod · 0.45
cMethod · 0.45

Tested by

no test coverage detected