protected void tickAbility() { if (this.healTick == 0) { if (this.aGreen != null && !this.aGreen.isDead) { aGreen.heal(1); } if (this.aBlue != null && !this.aBlue.isDead) { aBlue.heal(1); } if (this.aYellow != null && !this.aYellow.isDead) { aYellow.heal(1); } if (this.aPurple != null && !this.aPurple.isDead) { aPurple.heal(1); } } else { healTick--; } }
/** Called when the mob's health reaches 0. */ public void onDeath(DamageSource par1DamageSource) { super.onDeath(par1DamageSource); this.worldObj.setBlock(beamX, beamY, beamZ, 0); }
/** Called when the mob's health reaches 0. */ public void onDeath(DamageSource var1) { super.onDeath(var1); this.worldObj.setBlockWithNotify(this.beamX, this.beamY, this.beamZ, 0); }