contribution

public static double contribution(ItemStack item, ScriptHook hook, UUID actor, EnchantmentDefinition.Slot slot)


public static double contribution(ItemStack item, ScriptHook hook, UUID actor, EnchantmentDefinition.Slot slot, Map<String, ItemStack> worn)

worn is the actor's equipment by slot name; null reads it from the actor when a set needs it.