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