public class UnbreakingEnchantment extends Enchantment
Enchantment.Rarityname, typedelegate| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
UnbreakingEnchantment(Enchantment.Rarity rarityIn,
EquipmentSlotType... slots) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canApply(ItemStack stack)
Determines if this enchantment can be applied to a specific ItemStack.
|
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel()
Returns the maximum level that the enchantment can have.
|
int |
getMinEnchantability(int enchantmentLevel)
Returns the minimal value of enchantability needed on the enchantment level passed.
|
static boolean |
negateDamage(ItemStack stack,
int level,
java.util.Random rand)
Used by ItemStack.attemptDamageItem.
|
calcDamageByCreature, calcModifierDamage, canApplyAtEnchantingTable, canApplyTogether, getDefaultTranslationKey, getDisplayName, getEnchantmentByID, getEntityEquipment, getMinLevel, getName, getRarity, isAllowedOnBooks, isCompatibleWith, isCurse, isTreasureEnchantment, onEntityDamaged, onUserHurtgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameprotected UnbreakingEnchantment(Enchantment.Rarity rarityIn, EquipmentSlotType... slots)
public int getMinEnchantability(int enchantmentLevel)
getMinEnchantability クラス内 Enchantmentpublic int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability クラス内 Enchantmentpublic int getMaxLevel()
getMaxLevel クラス内 Enchantmentpublic boolean canApply(ItemStack stack)
canApply クラス内 Enchantmentpublic static boolean negateDamage(ItemStack stack, int level, java.util.Random rand)