public class SoulSpeedEnchantment extends Enchantment
Enchantment.Rarity
translationKey, 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, onUserDamaged
public SoulSpeedEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
public int getMinPower(int level)
getMinPower
in class Enchantment
public int getMaxPower(int level)
getMaxPower
in class Enchantment
public boolean isTreasure()
isTreasure
in class Enchantment
public boolean isAvailableForEnchantedBookOffer()
isAvailableForEnchantedBookOffer
in class Enchantment
public boolean isAvailableForRandomSelection()
isAvailableForRandomSelection
in class Enchantment
public int getMaxLevel()
getMaxLevel
in class Enchantment