public class EnchantmentDurability extends Enchantment
Enchantment.RarityIForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>name, REGISTRY, typedelegate| 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 p_92097_0_,
            int p_92097_1_,
            java.util.Random p_92097_2_) | 
calcDamageByCreature, calcModifierDamage, canApplyAtEnchantingTable, canApplyTogether, func_191560_c, getEnchantmentByID, getEnchantmentByLocation, getEnchantmentID, getEntityEquipment, getMinLevel, getName, getRarity, getTranslatedName, isAllowedOnBooks, isCurse, isTreasureEnchantment, onEntityDamaged, onUserHurt, registerEnchantments, setNamegetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameprotected EnchantmentDurability(Enchantment.Rarity rarityIn, EntityEquipmentSlot... slots)
public int getMinEnchantability(int enchantmentLevel)
getMinEnchantability in class Enchantmentpublic int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantmentpublic boolean canApply(ItemStack stack)
canApply in class Enchantmentpublic static boolean negateDamage(ItemStack p_92097_0_, int p_92097_1_, java.util.Random p_92097_2_)