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

Method getScoreboard

Minecraft-Utils/1.13/src/Variables.java:1245–1265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1243 }
1244
1245 @Override
1246 public ScoreboardImpl getScoreboard() {
1247 if (getWorld() == null) {
1248 return null;
1249 }
1250 cer scoreboard = getWorld().F();
1251 if (scoreboard == null) {
1252 return null;
1253 }
1254 ceo objective = scoreboard.a(1);
1255 if (objective == null) {
1256 return null;
1257 }
1258 String displayName = objective.d().getString();
1259 Collection<ceq> scores = scoreboard.i(objective);
1260 HashMap<String, Integer> lines = Maps.newHashMap();
1261 for (ceq score : scores) {
1262 lines.put(score.e(), score.b());
1263 }
1264 return new ScoreboardImpl(displayName, lines);
1265 }
1266
1267 @Override
1268 public ResourceManager getResourceManager() {

Callers

nothing calls this directly

Calls 7

getWorldMethod · 0.95
putMethod · 0.80
aMethod · 0.45
getStringMethod · 0.45
dMethod · 0.45
eMethod · 0.45
bMethod · 0.45

Tested by

no test coverage detected