Class SwordEnchantment
- java.lang.Object
-
- me.boboballoon.enhancedenchantments.enchantment.Enchantment
-
- me.boboballoon.enhancedenchantments.enchantment.ItemEnchantment
-
- me.boboballoon.enhancedenchantments.enchantment.WeaponEnchantment
-
- me.boboballoon.enhancedenchantments.enchantment.SwordEnchantment
-
public abstract class SwordEnchantment extends WeaponEnchantment
Superclass of any enchantment having to do with a sword
-
-
Field Summary
-
Fields inherited from class me.boboballoon.enhancedenchantments.enchantment.Enchantment
random
-
-
Constructor Summary
Constructors Constructor Description SwordEnchantment(String name, int maxLevel, EnchantmentTier tier, ItemTrigger trigger, List<String> description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringapplicableTo()Returns a string that describes what types of items the enchantment can be applied to (e.g.booleancanEnchant(ItemStack item)Returns a boolean that is true when an item can be enchanted, false when the item cannot be-
Methods inherited from class me.boboballoon.enhancedenchantments.enchantment.Enchantment
effect, getDescription, getMaxLevel, getName, getTier, getTrigger
-
-
-
-
Constructor Detail
-
SwordEnchantment
public SwordEnchantment(String name, int maxLevel, EnchantmentTier tier, ItemTrigger trigger, List<String> description)
-
-
Method Detail
-
applicableTo
public String applicableTo()
Description copied from class:EnchantmentReturns a string that describes what types of items the enchantment can be applied to (e.g. "weapons and tools")- Overrides:
applicableToin classWeaponEnchantment- 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:EnchantmentReturns a boolean that is true when an item can be enchanted, false when the item cannot be- Overrides:
canEnchantin classWeaponEnchantment- 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
-
-