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

Method getScoreboard

Minecraft-Utils/1.8/src/Variables.java:1185–1205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1183 }
1184
1185 @Override
1186 public ScoreboardImpl getScoreboard() {
1187 if (getWorld() == null) {
1188 return null;
1189 }
1190 bsd scoreboard = getWorld().Z();
1191 if (scoreboard == null) {
1192 return null;
1193 }
1194 bry objective = scoreboard.a(1);
1195 if (objective == null) {
1196 return null;
1197 }
1198 String displayName = objective.d();
1199 Collection<bsa> scores = scoreboard.i(objective);
1200 HashMap<String, Integer> lines = Maps.newHashMap();
1201 for (bsa score : scores) {
1202 lines.put(score.e(), score.c());
1203 }
1204 return new ScoreboardImpl(displayName, lines);
1205 }
1206
1207 @Override
1208 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