Esempio n. 1
0
 public override bool attackEntityFrom(Entity entity, int i)
 {
     setBeenAttacked();
     if (entity != null)
     {
         Vec3D vec3d = entity.getLookVec();
         if (vec3d != null)
         {
             motionX = vec3d.xCoord;
             motionY = vec3d.yCoord;
             motionZ = vec3d.zCoord;
             field_9199_b = motionX*0.10000000000000001D;
             field_9198_c = motionY*0.10000000000000001D;
             field_9196_d = motionZ*0.10000000000000001D;
         }
         return true;
     }
     else
     {
         return false;
     }
 }
Esempio n. 2
0
 public override bool attackEntityFrom(Entity entity, int i)
 {
     setBeenAttacked();
     if (entity != null)
     {
         Vec3D vec3d = entity.getLookVec();
         if (vec3d != null)
         {
             motionX      = vec3d.xCoord;
             motionY      = vec3d.yCoord;
             motionZ      = vec3d.zCoord;
             field_9199_b = motionX * 0.10000000000000001D;
             field_9198_c = motionY * 0.10000000000000001D;
             field_9196_d = motionZ * 0.10000000000000001D;
         }
         return(true);
     }
     else
     {
         return(false);
     }
 }