Skip to main content

finish_consuming_stack

Function finish_consuming_stack 

Source
pub(crate) fn finish_consuming_stack(
    stack: &ItemStack,
    world: &Arc<World>,
    user: &dyn LivingEntity,
) -> ItemStack
Expand description

Applies vanilla Consumable.onConsume’s shared tail: runs on_consume_effects, plays the consume sound, then shrinks the stack by one (creative mode leaves it untouched).