If your inventory data are stored in a GObject (or derived), then there is a possibility to use bindings or expressions to automatically bind the Entries text to the Object’s properties, i.e. clearing the inventory object will clear the entries too.
But that requires some careful design on the “inventory” itself.