FoodData

data class FoodData

Functions

Link copied to clipboard
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.

Link copied to clipboard
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.

Properties

Link copied to clipboard
val matcherProperties: PersistentMap<ItemMatcher, FoodProperties>
Link copied to clipboard
val materialActions: PersistentMap<Material, PlayerLambda>
Link copied to clipboard
val materialProperties: PersistentMap<Material, FoodProperties>