GL11.glScaled(0.07, 0.07, 1);
GL11.glTranslated(-3, 3.5, -0.025);
}
for(int i=0;i<6;i++) {
int colorCode = colors.getInteger("color:" + i);
Colors color = Colors.values()[colorCode];
int x = i / 3;
int y = i % 3;
if(type == ItemRenderType.INVENTORY) {
drawRect(x * 5 + 4, y * 3 + 3, x * 5 + 7, y * 3 + 5, color.getColorCode());
}
if(type == ItemRenderType.ENTITY) {
drawRect(-x * 5 + 4, -y * 3 + 3, -x * 5 + 7, -y * 3 + 5, color.getColorCode());
GL11.glRotatef(180, 1, 0, 0);
drawRect(-x * 5 + 4, -y * 3 + 3, -x * 5 + 7, -y * 3 + 5, color.getColorCode());
GL11.glRotatef(180, 1, 0, 0);
}
}
}
GL11.glPopMatrix();