Method to get inventory items now accepts entity type and ID.