http://minecraft.gamepedia.com/Programs_and_editors/Mod_Code...
The protocol is also well documented: http://wiki.vg/Protocol