public class EnchantmentLifeStealing extends ConfigurableEnchantment
eConfigaquaAffinity, baneOfArthropods, blastProtection, effectId, efficiency, enchantmentsBookList, enchantmentsList, featherFalling, field_151369_A, field_151370_z, fireAspect, fireProtection, flame, fortune, infinity, knockback, looting, name, power, projectileProtection, protection, punch, respiration, sharpness, silkTouch, smite, thorns, type, unbreaking| Modifier and Type | Method and Description |
|---|---|
static EnchantmentLifeStealing |
getInstance()
Get the unique instance.
|
int |
getMaxEnchantability(int level) |
int |
getMaxLevel() |
int |
getMinEnchantability(int level) |
static void |
initInstance(ExtendedConfig<EnchantmentConfig> eConfig)
Initialise the configurable.
|
static void |
stealLife(net.minecraft.entity.EntityLivingBase entity,
float damage,
int level)
Transfer the damage dealt as HP to the attacking entity.
|
getConfig, getTranslatedNamepublic static void initInstance(ExtendedConfig<EnchantmentConfig> eConfig)
eConfig - The config.public static EnchantmentLifeStealing getInstance()
public int getMinEnchantability(int level)
getMinEnchantability in class net.minecraft.enchantment.Enchantmentpublic int getMaxEnchantability(int level)
getMaxEnchantability in class net.minecraft.enchantment.Enchantmentpublic int getMaxLevel()
getMaxLevel in class net.minecraft.enchantment.Enchantmentpublic static void stealLife(net.minecraft.entity.EntityLivingBase entity,
float damage,
int level)
entity - The entity that attacked.damage - The damage that was dealt.level - The level of the enchant.