public void setHealth(int health) { this.health = health; this.healthBar.setFullRatio((float)health / DEFAULT_MAX_HEALTH); }