Class EnchantmentProtectionFall

All Implemented Interfaces:
Cloneable

public class EnchantmentProtectionFall extends EnchantmentProtection
Author:
MagicDroidX (Nukkit Project)
  • Constructor Details

    • EnchantmentProtectionFall

      public EnchantmentProtectionFall()
  • Method Details

    • getMinEnchantAbility

      public int getMinEnchantAbility(int level)
      Description copied from class: Enchantment
      The minimum enchantability for the given level as described in https://minecraft.gamepedia.com/Enchanting/Levels
      Overrides:
      getMinEnchantAbility in class Enchantment
      Parameters:
      level - The level being checked
      Returns:
      The minimum value
    • getMaxEnchantAbility

      public int getMaxEnchantAbility(int level)
      Description copied from class: Enchantment
      The maximum enchantability for the given level as described in https://minecraft.gamepedia.com/Enchanting/Levels
      Overrides:
      getMaxEnchantAbility in class Enchantment
      Parameters:
      level - The level being checked
      Returns:
      The maximum value
    • getTypeModifier

      public double getTypeModifier()
      Overrides:
      getTypeModifier in class EnchantmentProtection
    • getProtectionFactor

      public float getProtectionFactor(EntityDamageEvent e)
      Overrides:
      getProtectionFactor in class Enchantment