public class UnbreakingEnchantment extends Enchantment
Enchantment.Rarity
translationKey, type
Modifier | Constructor and Description |
---|---|
protected |
UnbreakingEnchantment(Enchantment.Rarity weight,
EquipmentSlot[] slotTypes) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxLevel() |
int |
getMaxPower(int level) |
int |
getMinPower(int level) |
boolean |
isAcceptableItem(ItemStack stack) |
static boolean |
shouldPreventDamage(ItemStack item,
int level,
Random random) |
byRawId, canAccept, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamaged, onUserDamaged
protected UnbreakingEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
public int getMinPower(int level)
getMinPower
in class Enchantment
public int getMaxPower(int level)
getMaxPower
in class Enchantment
public int getMaxLevel()
getMaxLevel
in class Enchantment
public boolean isAcceptableItem(ItemStack stack)
isAcceptableItem
in class Enchantment