getProperties

fun getProperties(itemStack: ItemStack): FoodProperties?

Attempts to find present food properties for the given itemStack Attempts to find a FoodProperties instance from the matchers then fallback to the material.

Return

The food properties for the given item stack or null if none are found.

Parameters

itemStack

The item stack to find food properties for