Added getEquipmentTypeFromStack to the API.