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

Method calculateHeightMap

Minecraft-Utils/1.10/src/GuiList.java:472–481  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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