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

Method calculateHeightMap

Minecraft-Utils/1.13/src/GuiList.java:453–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

451 }
452
453 @Override
454 public void calculateHeightMap() {
455 heightMap.clear();
456
457 int curHeight = getHeaderPadding();
458 List<E> chatLines = Lists.newArrayList(rows);
459 for (Row row : chatLines) {
460 heightMap.add(curHeight);
461 curHeight += row.getLineHeight();
462 }
463 }
464
465 @Override
466 public int getRowWidth() {

Callers 1

aMethod · 0.95

Calls 4

getHeaderPaddingMethod · 0.95
clearMethod · 0.65
getLineHeightMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected