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

Method calculateHeightMap

Minecraft-Utils/1.12/src/GuiList.java:473–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

471 }
472
473 @Override
474 public void calculateHeightMap() {
475 heightMap.clear();
476
477 int curHeight = getHeaderPadding();
478 List<E> chatLines = Lists.newArrayList(rows);
479 for (Row row : chatLines) {
480 heightMap.add(curHeight);
481 curHeight += row.getLineHeight();
482 }
483 }
484
485 @Override
486 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