takeFirstOccurrence

fun Inventory.takeFirstOccurrence(choice: RecipeChoice): ItemStack?

Removes one item matching the given choice and returns it