public class SoulSpeedEnchantment extends Enchantment
Enchantment.RaritytranslationKey, type| Constructor and Description |
|---|
SoulSpeedEnchantment(Enchantment.Rarity weight,
EquipmentSlot[] slotTypes) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaximumLevel() |
int |
getMaximumPower(int level) |
int |
getMinimumPower(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, getMinimumLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAcceptableItem, isCursed, onTargetDamaged, onUserDamagedpublic SoulSpeedEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
public int getMinimumPower(int level)
getMinimumPower in class Enchantmentpublic int getMaximumPower(int level)
getMaximumPower in class Enchantmentpublic boolean isTreasure()
isTreasure in class Enchantmentpublic boolean isAvailableForEnchantedBookOffer()
isAvailableForEnchantedBookOffer in class Enchantmentpublic boolean isAvailableForRandomSelection()
isAvailableForRandomSelection in class Enchantmentpublic int getMaximumLevel()
getMaximumLevel in class Enchantment