See Description for all changes:

Updated for Minecraft 1.5, then broke it while adding inventory. Will
fix some other time. Revert the inventory management stuff to another
commit for working 1.5 bot.