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 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
-
ArmorEnchantment
public ArmorEnchantment(String name, int maxLevel, EnchantmentTier tier, ArmorTrigger 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")- Specified by:
applicableTo
in 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:Enchantment
Returns a boolean that is true when an item can be enchanted, false when the item cannot be- Specified by:
canEnchant
in 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
-
-