Progress bar code I found
2013-10-23T19:56:48+00:00
public String generateProgressBar() {
int total = getSizeX() * getSizeY() * getSizeZ(); // Area
double percentage = this.visitedBlocks / total;
StringBuilder progBar = new StringBuilder();
append(Math.round(percentage * 100)).append("% ["); // 0.1 becomes 10
progBar.int bars = (int) percentage * 10; // 0.1 becomes 1
for (int bar = 1; bar <= 10; bar++) {
if (bars >= bar) {
append('#');
progBar.else {
} append('_');
progBar.
}
}append(']');
progBar.return progBar.toString();
}