Class FishingRodEnchantment


  • public abstract class FishingRodEnchantment
    extends Enchantment
    Superclass of any enchantment having to do with an fishing rod
    • Method Detail

      • applicableTo

        public String applicableTo()
        Description copied from class: Enchantment
        Returns a string that describes what types of items the enchantment can be applied to (e.g. "weapons and tools")
        Specified by:
        applicableTo in class Enchantment
        Returns:
        a string that describes what types of items the enchantment can be applied to
      • canEnchant

        public boolean canEnchant​(ItemStack item)
        Description copied from class: Enchantment
        Returns a boolean that is true when an item can be enchanted, false when the item cannot be
        Specified by:
        canEnchant in class Enchantment
        Parameters:
        item - the item you wish to check
        Returns:
        a boolean that is true when an item can be enchanted, false when the item cannot be