getInventory

open override fun getInventory(): Inventory

Returns the inventory associated with this GUI.

Return

The Inventory object.

Throws

If the inventory is not created yet.