Class ChestplateEnchantment
- java.lang.Object
-
- me.boboballoon.enhancedenchantments.enchantment.Enchantment
-
- me.boboballoon.enhancedenchantments.enchantment.ArmorEnchantment
-
- me.boboballoon.enhancedenchantments.enchantment.ChestplateEnchantment
-
public abstract class ChestplateEnchantment extends ArmorEnchantment
Superclass of any enchantment having to do with a chestplate
-
-
Field Summary
-
Fields inherited from class me.boboballoon.enhancedenchantments.enchantment.Enchantment
random
-
-
Constructor Summary
Constructors Constructor Description ChestplateEnchantment(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
-
ChestplateEnchantment
public ChestplateEnchantment(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")- Overrides:
applicableTo
in classArmorEnchantment
- 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 classArmorEnchantment
- 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
-
-