public class EnchantmentDurability extends Enchantment
Enchantment.Rarity
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
name, REGISTRY, type
delegate
Modifier | Constructor and Description |
---|---|
protected |
EnchantmentDurability(Enchantment.Rarity rarityIn,
EntityEquipmentSlot... slots) |
Modifier and Type | Method and Description |
---|---|
boolean |
canApply(ItemStack stack) |
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel() |
int |
getMinEnchantability(int enchantmentLevel) |
static boolean |
negateDamage(ItemStack stack,
int level,
java.util.Random rand) |
calcDamageByCreature, calcModifierDamage, canApplyAtEnchantingTable, canApplyTogether, getEnchantmentByID, getEnchantmentByLocation, getEnchantmentID, getEntityEquipment, getMinLevel, getName, getRarity, getTranslatedName, isAllowedOnBooks, isCompatibleWith, isCurse, isTreasureEnchantment, onEntityDamaged, onUserHurt, registerEnchantments, setName
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
protected EnchantmentDurability(Enchantment.Rarity rarityIn, EntityEquipmentSlot... slots)
public int getMinEnchantability(int enchantmentLevel)
getMinEnchantability
in class Enchantment
public int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability
in class Enchantment
public int getMaxLevel()
getMaxLevel
in class Enchantment
public boolean canApply(ItemStack stack)
canApply
in class Enchantment
public static boolean negateDamage(ItemStack stack, int level, java.util.Random rand)