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

Method getScoreboard

Minecraft-Utils/1.8.8/src/Variables.java:1203–1223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1201 }
1202
1203 @Override
1204 public ScoreboardImpl getScoreboard() {
1205 if (getWorld() == null) {
1206 return null;
1207 }
1208 auo scoreboard = getWorld().Z();
1209 if (scoreboard == null) {
1210 return null;
1211 }
1212 auk objective = scoreboard.a(1);
1213 if (objective == null) {
1214 return null;
1215 }
1216 String displayName = objective.d();
1217 Collection<aum> scores = scoreboard.i(objective);
1218 HashMap<String, Integer> lines = Maps.newHashMap();
1219 for (aum score : scores) {
1220 lines.put(score.e(), score.c());
1221 }
1222 return new ScoreboardImpl(displayName, lines);
1223 }
1224
1225 @Override
1226 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