public boolean attackEntityAsMob(Entity par1Entity) { this.attackTimer = 10; this.worldObj.setEntityState(this, (byte) 4); boolean var2 = par1Entity.attackEntityFrom( DamageSource.causeMobDamage(this), (float) (7 + this.rand.nextInt(15))); if (var2) { par1Entity.motionY += 0.4000000059604645D; } this.playSound("mob.irongolem.throw", 1.0F, 1.0F); return var2; }
public boolean attackEntityAsMob(Entity par1Entity) { return par1Entity.attackEntityFrom(DamageSource.causeMobDamage(this), 3); }
public boolean attackEntityAsMob(Entity par1Entity) { int var2 = this.isTamed() ? 4 : 2; return par1Entity.attackEntityFrom(DamageSource.causeMobDamage(this), var2); }