I remember Notch saying in 2010 that he planned to add an official modding API, but it never actually happened.
---
Edit: https://web.archive.org/web/20100708183651/http://notch.tumb...
---
Edit: https://web.archive.org/web/20100708183651/http://notch.tumb...