Consumable
constructor(nutrition: Provider<Int>, saturation: Provider<Float>, canAlwaysEat: Provider<Boolean>, consumeTime: Provider<Int>, remains: Provider<ItemStack?>, possibleEffects: Provider<Map<PotionEffect, Float>>, animation: Provider<ItemUseAnimation>, sound: Provider<Key>, particles: Provider<Boolean>)
Parameters
nutrition
The nutrition that consuming the item provides.
saturation
The saturation that consuming the item provides.
canAlwaysEat
Whether the item can always be eaten, even if the player is not hungry.
consumeTime
The time it takes to consume the item in ticks.
remains
The item that remains after consuming the item.
possibleEffects
The possible effects that consuming the item can apply.
animation
The animation that is played when consuming the item.
sound
The sound that is played when consuming the item.
particles
Whether particles are spawned when consuming the item.