}
g.translate(-container.getWidth()+minimapWidth+20,-20);
}
private void renderHealth() {
Health health = healthMapper.get(player);
g.translate(35, container.getHeight()-45);
{
font.drawString(-26, 8, "Health");
g.rotate(0, 0, -90);
float healthStatus = health.getHealthStatus();
g.setDrawMode(Graphics.MODE_ADD);
statusBar.draw(0,0,statusBar.getWidth()*healthStatus, statusBar.getHeight(), 0,0,statusBar.getWidth()*healthStatus, statusBar.getHeight(), healthStatus<0.25?Color.red:healthStatus<0.6?Color.yellow:Color.green);
statusBar.draw(statusBar.getWidth()*healthStatus,0,statusBar.getWidth(), statusBar.getHeight(), statusBar.getWidth()*healthStatus,0,statusBar.getWidth(), statusBar.getHeight(), new Color(0.15f,0.15f,0.15f));
g.setDrawMode(Graphics.MODE_NORMAL);
g.rotate(0, 0, 90);