Class EnchantmentProtectionFall

java.lang.Object
org.cloudburstmc.api.enchantment.behavior.EnchantmentBehavior
org.cloudburstmc.server.enchantment.behavior.protection.EnchantmentProtection
org.cloudburstmc.server.enchantment.behavior.protection.EnchantmentProtectionFall

public class EnchantmentProtectionFall extends EnchantmentProtection
author: MagicDroidX Nukkit Project
  • Constructor Details

    • EnchantmentProtectionFall

      public EnchantmentProtectionFall()
  • Method Details

    • getMinEnchantAbility

      public int getMinEnchantAbility(int level)
      Overrides:
      getMinEnchantAbility in class org.cloudburstmc.api.enchantment.behavior.EnchantmentBehavior
    • getMaxEnchantAbility

      public int getMaxEnchantAbility(int level)
      Overrides:
      getMaxEnchantAbility in class org.cloudburstmc.api.enchantment.behavior.EnchantmentBehavior
    • getTypeModifier

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

      public float getProtectionFactor(org.cloudburstmc.api.enchantment.EnchantmentInstance enchantment, org.cloudburstmc.api.event.entity.EntityDamageEvent e)
      Specified by:
      getProtectionFactor in class EnchantmentProtection