public class UnbreakingEnchantment extends Enchantment
Enchantment.Rarity
name, type
delegate
Modifier | Constructor and Description |
---|---|
protected |
UnbreakingEnchantment(Enchantment.Rarity rarityIn,
EquipmentSlotType... 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, getDefaultTranslationKey, getDisplayName, getEnchantmentByID, getEntityEquipment, getMinLevel, getName, getRarity, isAllowedOnBooks, isCompatibleWith, isCurse, isTreasureEnchantment, onEntityDamaged, onUserHurt
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
protected UnbreakingEnchantment(Enchantment.Rarity rarityIn, EquipmentSlotType... 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)