Class EnchantmentTridentRiptide

All Implemented Interfaces:
Cloneable

public class EnchantmentTridentRiptide extends EnchantmentTrident
  • Constructor Details

    • EnchantmentTridentRiptide

      public EnchantmentTridentRiptide()
  • 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
    • getMaxLevel

      public int getMaxLevel()
      Description copied from class: Enchantment
      The maximum safe level which is possible with this enchantment.
      Overrides:
      getMaxLevel in class Enchantment
    • checkCompatibility

      public boolean checkCompatibility(Enchantment enchantment)
      Description copied from class: Enchantment
      Checks if this enchantment can be applied to an item that have the give enchantment without doing reverse check.
      Overrides:
      checkCompatibility in class Enchantment
      Parameters:
      enchantment - The enchantment to be checked
      Returns:
      If this enchantment is compatible with the other enchantment.