superjoe30/mineflayer — pull request #73 by Contra (2013-01-08 16:22:42+00:00)
Title: add inventory plugin

Events: inventoryUpdate, equipmentUpdate, quickbarUpdate
Fields: entity.inventory, entity.quickbar, entity.heldSlot (from 0x10)
Functions: bot.hold(slot)

Some of the stuff dealing with the held item is a little hacky since the held item number comes in before the inventory on login. Can be improved on a bit but I think it works well enough for now