build
Constructs and prepares the InventoryGUI object for use by setting the appropriate state and displaying it. If the currentState is null and the enumClass corresponds to SinglePage, it initializes currentState with SinglePage.PAGE.
Return
The constructed InventoryGUI instance.