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

Method getScoreboard

Minecraft-Utils/1.9/src/Variables.java:1172–1192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1170 }
1171
1172 @Override
1173 public ScoreboardImpl getScoreboard() {
1174 if (getWorld() == null) {
1175 return null;
1176 }
1177 bbp scoreboard = getWorld().ad();
1178 if (scoreboard == null) {
1179 return null;
1180 }
1181 bbl objective = scoreboard.a(1);
1182 if (objective == null) {
1183 return null;
1184 }
1185 String displayName = objective.d();
1186 Collection<bbn> scores = scoreboard.i(objective);
1187 HashMap<String, Integer> lines = Maps.newHashMap();
1188 for (bbn score : scores) {
1189 lines.put(score.e(), score.c());
1190 }
1191 return new ScoreboardImpl(displayName, lines);
1192 }
1193
1194 @Override
1195 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