Interface ChanceBasedEnchant


public interface ChanceBasedEnchant
Interface for enchantments that trigger based on a chance percentage.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getChanceToTrigger(int enchantLevel)
    Returns the chance (0.00 - 100.00) for the enchantment to trigger based on its level.
  • Method Details

    • getChanceToTrigger

      double getChanceToTrigger(int enchantLevel)
      Returns the chance (0.00 - 100.00) for the enchantment to trigger based on its level.
      Parameters:
      enchantLevel - the level of the enchantment
      Returns:
      chance to trigger as a percentage (0.00 to 100.00)