public class SoulSpeedEnchantment extends Enchantment
Enchantment.RaritytranslationKey, type| Constructor and Description |
|---|
SoulSpeedEnchantment(Enchantment.Rarity weight,
EquipmentSlot[] slotTypes) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxLevel() |
int |
getMaxPower(int level) |
int |
getMinPower(int level) |
boolean |
isAvailableForEnchantedBookOffer()
Returns whether this enchantment will appear in the enchanted book trade
offers of librarian villagers.
|
boolean |
isAvailableForRandomSelection()
Returns whether this enchantment will appear in the enchanting table or
loots with random enchant function.
|
boolean |
isTreasure() |
byRawId, canAccept, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAcceptableItem, isCursed, onTargetDamaged, onUserDamagedpublic SoulSpeedEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
public int getMinPower(int level)
getMinPower in class Enchantmentpublic int getMaxPower(int level)
getMaxPower in class Enchantmentpublic boolean isTreasure()
isTreasure in class Enchantmentpublic boolean isAvailableForEnchantedBookOffer()
isAvailableForEnchantedBookOffer in class Enchantmentpublic boolean isAvailableForRandomSelection()
isAvailableForRandomSelection in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantment