VanillaDev/Vanilla — pull request #531 by aPunch (2013-01-26 16:46:56+00:00)
Title: Enchantment progress

-Add enchantability property for ToolLevels to make swords and tools able to be enchanted
-Test handling of WindowEnchantItemMessage
-Proper handling of the enchantment window enchant slots

Right now, you should be able to place an item in the enchantment table and choose one of the three hard-coded enchant levels. This will "enchant" the item, although you cannot see it on the client.

Things needed to be done:
-The NBT data for enchantments is likely incorrect as there are client crashes when clicking items that have been enchanted. This issue is kind of a blocker for the rest of the code and I am not sure how to fix it, so it would be nice if someone could look through the Enchantment code and make sure all of the NBT data has been applied correctly.
-Once the above is complete, it will be easier to implement and test the actual enchantment-calculation code that will make Vanilla's enchantments ready for Beta.