public class EnchantmentLifeStealing
extends net.minecraft.enchantment.Enchantment
| Constructor and Description |
|---|
EnchantmentLifeStealing() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxEnchantability(int level) |
int |
getMaxLevel() |
int |
getMinEnchantability(int level) |
void |
stealLife(net.minecraftforge.event.entity.living.LivingAttackEvent event) |
static void |
stealLife(net.minecraft.entity.LivingEntity entity,
float damage,
int level)
Transfer the damage dealt as HP to the attacking entity.
|
calcDamageByCreature, calcModifierDamage, canApply, canApplyAtEnchantingTable, canApplyTogether, getDefaultTranslationKey, getDisplayName, getEnchantmentByID, getEntityEquipment, getMinLevel, getName, getRarity, isAllowedOnBooks, isCompatibleWith, isCurse, isTreasureEnchantment, onEntityDamaged, onUserHurtpublic void stealLife(net.minecraftforge.event.entity.living.LivingAttackEvent event)
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.LivingEntity entity,
float damage,
int level)
entity - The entity that attacked.damage - The damage that was dealt.level - The level of the enchant.