Skip to main content

apply_item_stack_components

Function apply_item_stack_components 

Source
pub(crate) fn apply_item_stack_components(
    entity: &SharedEntity,
    item_stack: &ItemStack,
    user_is_operator: bool,
) -> Result<(), EntitySpawnError>
Expand description

Applies all entity data carried by an item stack during a normal item spawn.