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

Method getScoreboard

Minecraft-Utils/1.12/src/Variables.java:1229–1249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1227 }
1228
1229 @Override
1230 public ScoreboardImpl getScoreboard() {
1231 if (getWorld() == null) {
1232 return null;
1233 }
1234 bhi scoreboard = getWorld().af();
1235 if (scoreboard == null) {
1236 return null;
1237 }
1238 bhe objective = scoreboard.a(1);
1239 if (objective == null) {
1240 return null;
1241 }
1242 String displayName = objective.d();
1243 Collection<bhg> scores = scoreboard.i(objective);
1244 HashMap<String, Integer> lines = Maps.newHashMap();
1245 for (bhg score : scores) {
1246 lines.put(score.e(), score.c());
1247 }
1248 return new ScoreboardImpl(displayName, lines);
1249 }
1250
1251 @Override
1252 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