MCPcopy Create free account
hub / github.com/Garten/sourcecraft / countAirY

Method countAirY

src/source/addable/addable/Pane.java:58–66  ·  view source on GitHub ↗
(int x, int yStart, int z, int yEnd)

Source from the content-addressed store, hash-verified

56 }
57
58 private int countAirY(int x, int yStart, int z, int yEnd) {
59 int sum = 0;
60 for (int yRun = yStart; yRun <= yEnd; yRun++) {
61 if (this.map.isAirBlock(new Position(x, yRun, z))) {
62 sum++;
63 }
64 }
65 return sum;
66 }
67}

Callers 1

addMethod · 0.95

Calls 1

isAirBlockMethod · 0.65

Tested by

no test coverage detected