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

Method getScoreboard

Minecraft-Utils/1.11/src/Variables.java:1224–1244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1222 }
1223
1224 @Override
1225 public ScoreboardImpl getScoreboard() {
1226 if (getWorld() == null) {
1227 return null;
1228 }
1229 bea scoreboard = getWorld().ad();
1230 if (scoreboard == null) {
1231 return null;
1232 }
1233 bdw objective = scoreboard.a(1);
1234 if (objective == null) {
1235 return null;
1236 }
1237 String displayName = objective.d();
1238 Collection<bdy> scores = scoreboard.i(objective);
1239 HashMap<String, Integer> lines = Maps.newHashMap();
1240 for (bdy score : scores) {
1241 lines.put(score.e(), score.c());
1242 }
1243 return new ScoreboardImpl(displayName, lines);
1244 }
1245
1246 @Override
1247 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