total = total + (int) (long) l;
}
}
}
FontRenderer fontRenderer = mc.fontRendererObj;
int lineNumber = 0;
if (this.scanDebug.startsWith("scan_large"))
{
Progress progressObject = this.dataGatherer.getLargeScanProgress();
float progress = (float) progressObject.getProgress_Current() / progressObject.getProgress_Total();
fontRenderer.drawStringWithShadow(
"Scan ["
+ mc.theWorld.getHeight() + "]: " + StringUtils.repeat("|", (int) (100 * progress)) + " ("
+ (int) (progress * 100) + "%)", 20, 2 + 9 * lineNumber, 0xFFFFCC);
}
lineNumber = lineNumber + 1;
int leftAlign = 2 + (isDeltaPass ? 300 : 0);
for (String index : sort)
{
if (lineNumber <= 100 && !index.contains("^"))
{
if (this.scanDebug.startsWith("scan_") || this.scanDebug.equals("block_contact"))
{
Long count = LongFloatSimplificator.longOf(sheet.get(index));
if (count != null)
{
if (count > 0)
{
float scalar = (float) count / total;
String percentage =
!this.scanDebug.endsWith(ScannerModule.THOUSAND_SUFFIX) ? Float.toString(Math
.round(scalar * 1000f) / 10f) : Integer.toString(Math.round(scalar * 100f));
if (percentage.equals("0.0"))
{
percentage = "0";
}
int fill = Math.round(scalar * ALL * 2 /* * 2*/);
int superFill = 0;
if (fill > ALL * 2)
{
fill = ALL * 2;
}
if (fill > ALL)
{
superFill = fill - ALL;
}
String bars = "";
if (superFill > 0)
{
bars = bars + ChatColorsSimple.COLOR_YELLOW + StringUtils.repeat("|", superFill);
}
bars =
bars
+ eu.ha3.mc.quick.chat.ChatColorsSimple.THEN_RESET
+ StringUtils.repeat("|", fill - superFill * 2);
if (index.startsWith("minecraft:"))
{
index = index.substring(10);
}
fontRenderer.drawStringWithShadow(bars
+ (fill == ALL * 2
? ChatColorsSimple.COLOR_YELLOW + "++" + ChatColorsSimple.THEN_RESET : "") + " ("
+ count + ", " + percentage + "%) " + index, leftAlign, 2 + 9 * lineNumber, 0xFFFFFF);
lineNumber = lineNumber + 1;
}
}
}
else if (this.scanDebug.startsWith("detect_"))
{
String val = sheet.get(index);
if (!val.equals("0") && !val.equals(Integer.toString(Integer.MAX_VALUE)))
{
if (!index.equals("0"))
{
fontRenderer.drawStringWithShadow(
index + " (" + EntityList.getStringFromID(Integer.parseInt(index)) + "): " + val,
leftAlign, 2 + 9 * lineNumber, 0xFFFFFF);
}
else
{
fontRenderer.drawStringWithShadow(
index + " (Player): " + val, leftAlign, 2 + 9 * lineNumber, 0xFFFFFF);
}
lineNumber = lineNumber + 1;
}
}
else
{
String val = sheet.get(index);
int color = 0xFFFFFF;
if (val.equals("0"))
{
color = 0xFF0000;
}
else if (val.equals("1"))
{
color = 0x0099FF;
}
fontRenderer.drawStringWithShadow(index + ": " + val, leftAlign, 2 + 9 * lineNumber, color);
lineNumber = lineNumber + 1;
}
}
}
GL11.glPopMatrix();