Class ArmorEnchantment
- java.lang.Object
-
- me.boboballoon.enhancedenchantments.enchantment.Enchantment
-
- me.boboballoon.enhancedenchantments.enchantment.ArmorEnchantment
-
- Direct Known Subclasses:
BootsEnchantment,ChestplateEnchantment,HelmetEnchantment,LeggingsEnchantment
public abstract class ArmorEnchantment extends Enchantment
Superclass of any enchantment having to do with armor
-
-
Field Summary
-
Fields inherited from class me.boboballoon.enhancedenchantments.enchantment.Enchantment
random
-
-
Constructor Summary
Constructors Constructor Description ArmorEnchantment(String name, int maxLevel, EnchantmentTier tier, ArmorTrigger 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
-
ArmorEnchantment
public ArmorEnchantment(String name, int maxLevel, EnchantmentTier tier, ArmorTrigger 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")- Specified by:
applicableToin classEnchantment- 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- Specified by:
canEnchantin classEnchantment- 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
-
-