use of org.terasology.engine.monitoring.chunk.ChunkMonitorEntry in project Terasology by MovingBlocks.
the class ChunkMonitorDisplay method recomputeRenderY.
private void recomputeRenderY() {
int min = 0;
int max = 0;
int y = renderY;
for (ChunkMonitorEntry chunk : chunks) {
final Vector3i pos = chunk.getPosition();
if (pos.y < min) {
min = pos.y;
}
if (pos.y > max) {
max = pos.y;
}
}
if (y < min) {
y = min;
}
if (y > max) {
y = max;
}
minRenderY = min;
maxRenderY = max;
renderY = y;
}
Aggregations