public class EnchantmentLifeStealing
extends org.cyclops.cyclopscore.config.configurable.ConfigurableEnchantment
| Constructor and Description |
|---|
EnchantmentLifeStealing(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.EnchantmentConfig> eConfig) |
| 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 |
stealLife(net.minecraft.entity.EntityLivingBase entity,
float damage,
int level)
Transfer the damage dealt as HP to the attacking entity.
|
getConfig, getTranslatedNamecalcDamageByCreature, calcModifierDamage, canApply, canApplyAtEnchantingTable, canApplyTogether, getEnchantmentByID, getEnchantmentByLocation, getEnchantmentID, getEntityEquipment, getMinLevel, getName, getRarity, isAllowedOnBooks, isCompatibleWith, isCurse, isTreasureEnchantment, onEntityDamaged, onUserHurt, registerEnchantments, setNamepublic EnchantmentLifeStealing(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.EnchantmentConfig> eConfig)
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.