*/
protected void drawElements(float partialTick, boolean foreground) {
if (foreground) {
for (int i = 0; i < elements.size(); i++) {
ElementBase element = elements.get(i);
if (element.isVisible()) {
element.drawForeground(mouseX, mouseY);
}
}
} else {
for (int i = 0; i < elements.size(); i++) {
ElementBase element = elements.get(i);
if (element.isVisible()) {
element.drawBackground(mouseX, mouseY, partialTick);
}
}
}
}