Class EnchantmentPoisonTip
java.lang.Object
net.minecraft.world.item.enchantment.Enchantment
org.cyclops.evilcraft.enchantment.EnchantmentPoisonTip
- All Implemented Interfaces:
net.minecraftforge.common.extensions.IForgeEnchantment
public class EnchantmentPoisonTip
extends net.minecraft.world.item.enchantment.Enchantment
Enchantment that poisons the attacked entity.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.enchantment.Enchantment
net.minecraft.world.item.enchantment.Enchantment.Rarity -
Field Summary
Fields inherited from class net.minecraft.world.item.enchantment.Enchantment
category, descriptionId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetMaxCost(int level) intintgetMinCost(int level) static voidpoison(net.minecraft.world.entity.LivingEntity entity, int level) Poison the attacked entity according to the level of the enchant.voidpoisonTipEvent(net.minecraftforge.event.entity.living.LivingAttackEvent event) Methods inherited from class net.minecraft.world.item.enchantment.Enchantment
byId, canApplyAtEnchantingTable, canEnchant, checkCompatibility, doPostAttack, doPostHurt, getDamageBonus, getDamageProtection, getDescriptionId, getFullname, getMinLevel, getOrCreateDescriptionId, getRarity, getSlotItems, isAllowedOnBooks, isCompatibleWith, isCurse, isDiscoverable, isTradeable, isTreasureOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeEnchantment
allowedInCreativeTab, getDamageBonus
-
Constructor Details
-
EnchantmentPoisonTip
public EnchantmentPoisonTip()
-
-
Method Details
-
poisonTipEvent
public void poisonTipEvent(net.minecraftforge.event.entity.living.LivingAttackEvent event) -
getMinCost
public int getMinCost(int level) - Overrides:
getMinCostin classnet.minecraft.world.item.enchantment.Enchantment
-
getMaxCost
public int getMaxCost(int level) - Overrides:
getMaxCostin classnet.minecraft.world.item.enchantment.Enchantment
-
getMaxLevel
public int getMaxLevel()- Overrides:
getMaxLevelin classnet.minecraft.world.item.enchantment.Enchantment
-
poison
public static void poison(net.minecraft.world.entity.LivingEntity entity, int level) Poison the attacked entity according to the level of the enchant.- Parameters:
entity- The entity was attacked.level- The level of the enchant.
-