isFood

abstract fun isFood(item: ItemStack): Boolean

Returns true if the given item is considered food for this animal, or false otherwise.

Return

true if the item is food, false otherwise

Parameters

item

the item