Original: As an aromatic confectionery, cubeb was often candied and eaten whole.
Simplified: As a good-smelling snack, cubeb was often candied and eaten.