getSelected

static Optional<InventoryItemgetSelected()

Gets the selected inventory item, if an item is selected

Return

the selected inventory item, or an empty optional if none selected