public class EfficiencyEnchantment extends Enchantment
Enchantment.RaritytranslationKey, type| Modifier | Constructor and Description |
|---|---|
protected |
EfficiencyEnchantment(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) |
byRawId, canAccept, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamaged, onUserDamagedprotected EfficiencyEnchantment(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 isAcceptableItem(ItemStack stack)
isAcceptableItem in class Enchantment