public class InfinityEnchantment extends Enchantment
Enchantment.RaritytranslationKey, type| Constructor and Description |
|---|
InfinityEnchantment(Enchantment.Rarity weight,
EquipmentSlot[] slotTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccept(Enchantment other)
Returns whether this enchantment can exist on an item stack with the
other enchantment. |
int |
getMaxLevel() |
int |
getMaxPower(int level) |
int |
getMinPower(int level) |
byRawId, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAcceptableItem, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamaged, onUserDamagedpublic InfinityEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
public int getMinPower(int level)
getMinPower in class Enchantmentpublic int getMaxPower(int level)
getMaxPower in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantmentpublic boolean canAccept(Enchantment other)
other enchantment.canAccept in class Enchantment