Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void renderHealth(SpriteBatch sb) {
- if (!Settings.hideCombatElements) {
- float x = this.hb.cX - this.hb.width / 2.0F;
- float y = this.hb.cY - this.hb.height / 2.0F + this.hbYOffset;
- this.renderHealthBg(sb, x, y);
- if (this.targetHealthBarWidth != 0.0F) {
- this.renderOrangeHealthBar(sb, x, y);
- if (this.hasPower("Poison")) {
- this.renderGreenHealthBar(sb, x, y);
- }
- this.renderRedHealthBar(sb, x, y);
- }
- if (this.currentBlock != 0 && this.hbAlpha != 0.0F) {
- this.renderBlockOutline(sb, x, y);
- }
- this.renderHealthText(sb, y);
- if (this.currentBlock != 0 && this.hbAlpha != 0.0F) {
- this.renderBlockIconAndValue(sb, x, y);
- }
- this.renderPowerIcons(sb, x, y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement