Class AxeEnchantment
- java.lang.Object
-
- me.boboballoon.enhancedenchantments.enchantment.Enchantment
-
- me.boboballoon.enhancedenchantments.enchantment.ItemEnchantment
-
- me.boboballoon.enhancedenchantments.enchantment.WeaponEnchantment
-
- me.boboballoon.enhancedenchantments.enchantment.AxeEnchantment
-
public abstract class AxeEnchantment extends WeaponEnchantment
Superclass of any enchantment having to do with an axe
-
-
Field Summary
-
Fields inherited from class me.boboballoon.enhancedenchantments.enchantment.Enchantment
random
-
-
Constructor Summary
Constructors Constructor Description AxeEnchantment(String name, int maxLevel, EnchantmentTier tier, ItemTrigger trigger, List<String> description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
applicableTo()
Returns a string that describes what types of items the enchantment can be applied to (e.g.boolean
canEnchant(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
-
AxeEnchantment
public AxeEnchantment(String name, int maxLevel, EnchantmentTier tier, ItemTrigger trigger, List<String> description)
-
-
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")- Overrides:
applicableTo
in 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:Enchantment
Returns a boolean that is true when an item can be enchanted, false when the item cannot be- Overrides:
canEnchant
in 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
-
-