Class EnchantmentVanishingCurse

java.lang.Object
cn.nukkit.item.enchantment.Enchantment
cn.nukkit.item.enchantment.EnchantmentVanishingCurse
All Implemented Interfaces:
Cloneable

public class EnchantmentVanishingCurse extends Enchantment
  • Constructor Details

    • EnchantmentVanishingCurse

      protected EnchantmentVanishingCurse()
  • 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
    • canEnchant

      public boolean canEnchant(Item item)
      Description copied from class: Enchantment
      Checks if the given item have a type which is compatible with this enchantment. This method does not check if the item already have incompatible enchantments.
      Overrides:
      canEnchant in class Enchantment
      Parameters:
      item - The item to be checked
      Returns:
      If the type of the item is valid for this enchantment