Fix/Update InventoryAPI.java

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