}
@Override
public void drawForeground(TextureManager renderEngine, int mouseX, int mouseY) {
int drawnY = 0;
IBeefListBoxEntry entry;
for(int i = displayTop; i < entries.size(); i++) {
entry = entries.get(i);
if(entry.getHeight() + drawnY > this.height) { break; }
else {
if(this.selectedEntryIdx == i) {
entry.draw(this.guiContainer.getFontRenderer(), relativeX+margin, relativeY+margin+drawnY, selectedLineColor, selectedTextColor);
}
else {
entry.draw(this.guiContainer.getFontRenderer(), relativeX+margin, relativeY+margin+drawnY, backgroundColor, textColor);
}
}
if(drawnY >= this.height) { break; }
}
}