Skip to main content

select_enchantment

Function select_enchantment 

Source
pub(crate) fn select_enchantment<R: Random>(
    random: &mut R,
    stack: &ItemStack,
    enchantment_cost: i32,
    source: impl Iterator<Item = EnchantmentRef>,
) -> Vec<EnchantmentInstance>
Expand description

Selects enchantments for an enchanting table offer