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

Method getScoreboard

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

Source from the content-addressed store, hash-verified

1178 }
1179
1180 @Override
1181 public ScoreboardImpl getScoreboard() {
1182 if (getWorld() == null) {
1183 return null;
1184 }
1185 bac scoreboard = getWorld().W();
1186 if (scoreboard == null) {
1187 return null;
1188 }
1189 azx objective = scoreboard.a(1);
1190 if (objective == null) {
1191 return null;
1192 }
1193 String displayName = objective.d();
1194 Collection<azz> scores = scoreboard.i(objective);
1195 HashMap<String, Integer> lines = Maps.newHashMap();
1196 for (azz score : scores) {
1197 lines.put(score.e(), score.c());
1198 }
1199 return new ScoreboardImpl(displayName, lines);
1200 }
1201
1202 @Override
1203 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