Skip to main content

shearing_loot_items_with_rng

Function shearing_loot_items_with_rng 

Source
pub(crate) fn shearing_loot_items_with_rng<R: Rng, E: LivingEntity + ?Sized>(
    entity: &E,
    loot_table: LootTableRef,
    tool: &ItemStack,
    rng: &mut R,
) -> Vec<ItemStack>
Expand description

Runs vanilla LivingEntity.dropFromShearingLootTable for loot_table, returning the drops resolved with the vanilla shearing loot params (origin, entity, tool).