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

Method getScoreboard

Minecraft-Utils/1.8.9/src/Variables.java:1200–1220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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