Skip to main content

can_item_quick_replace

Function can_item_quick_replace 

Source
pub fn can_item_quick_replace(
    slot_item: &ItemStack,
    carried: &ItemStack,
    ignore_size: bool,
) -> bool
Expand description

Checks if an item can be quick-placed into a slot. If ignore_size is true, doesn’t check if the combined count would exceed max stack size.