Ejemplo n.º 1
0
 public override bool AttackEntityFrom(net.minecraft.src.Entity entity, int i)
 {
     SetBeenAttacked();
     if (entity != null)
     {
         net.minecraft.src.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);
     }
 }