update

fun update()

Generates or updates the inventory based on the current configuration. This should be called whenever the GUI's state changes.