Fix/Update InventoryAPI.java

getHealth() must be only used with Damageable class.     
I'm changing only to fix build problems.