@Override
protected void drawElement(int index, int xPosition, int yPosition, int rowHeight, Tessellator tessellator) {
if(index < 0 || index >= channels.size()) {
return;
}
Channel c = getElementAt(index);
if(c == null) {
return;
}
int col = ColorUtil.getRGB(Color.white);
parent.drawString(parent.getFontRenderer(), c.getName(), xPosition + margin, yPosition + margin / 2, col);
if(!c.isPublic()) {
IconEIO.PRIVATE.renderIcon(xPosition + width - 18, yPosition - 3, 16, 15, 0, true);
}
}