getAction

fun getAction(itemStack: ItemStack): PlayerLambda?

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

Return

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

Parameters

itemStack

The item stack to find food actions for