@Override public void onLivingUpdate() { super.onLivingUpdate(); if (this.worldObj.isRemote) { } else { if (this.isSpinning()) this.decrementSpinTicks(); if (this.getAttackTime() > 0) this.decrementAttackTime(); if (this.isFluttering()) this.decrementFlutterTicks(); if (this.ticksExisted % 120 == 0 && this.getAttackTarget() == null && rand.nextBoolean() && !this.isSpinning() && !this.isFluttering()) { if (rand.nextBoolean()) { this.setSpinTicks(120); } else { this.setFlutterTicks(60); } } } }