Examples of knockBack()


Examples of net.minecraft.entity.EntityLivingBase.knockBack()

                for (var7 = livingEntity.posZ - par4; var9 * var9 + var7 * var7 < 1.0E-4D; var7 = (Math.random() - Math.random()) * 0.01D)
                {
                    var9 = (Math.random() - Math.random()) * 0.01D;
                }

                livingEntity.knockBack(livingEntity, 1, var9, var7);
            }
        }
    }

    @Override
View Full Code Here

Examples of net.minecraft.entity.EntityLivingBase.knockBack()

          int dmg = (int) Math.ceil( penetration / 20.0f );
          if ( pos.entityHit instanceof EntityLivingBase )
          {
            EntityLivingBase el = (EntityLivingBase) pos.entityHit;
            penetration -= dmg;
            el.knockBack( p, 0, -direction.xCoord, -direction.zCoord );
            // el.knockBack( p, 0, vec3.xCoord,
            // vec3.zCoord );
            el.attackEntityFrom( dmgSrc, dmg );
            if ( !el.isEntityAlive() )
              hasDestroyedSomething = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.