Package net.minecraft.enchantment
Class SoulSpeedEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.SoulSpeedEnchantment
public class SoulSpeedEnchantment extends Enchantment
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.enchantment.Enchantment
Enchantment.Rarity -
Field Summary
Fields inherited from class net.minecraft.enchantment.Enchantment
translationKey, type -
Constructor Summary
Constructors Constructor Description SoulSpeedEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) -
Method Summary
Modifier and Type Method Description intgetMaxLevel()intgetMaxPower(int level)intgetMinPower(int level)booleanisAvailableForEnchantedBookOffer()Returns whether this enchantment will appear in the enchanted book trade offers of librarian villagers.booleanisAvailableForRandomSelection()Returns whether this enchantment will appear in the enchanting table or loots with random enchant function.booleanisTreasure()Methods inherited from class net.minecraft.enchantment.Enchantment
byRawId, canAccept, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAcceptableItem, isCursed, onTargetDamaged, onUserDamaged
-
Constructor Details
-
SoulSpeedEnchantment
-
-
Method Details
-
getMinPower
public int getMinPower(int level)- Overrides:
getMinPowerin classEnchantment
-
getMaxPower
public int getMaxPower(int level)- Overrides:
getMaxPowerin classEnchantment
-
isTreasure
public boolean isTreasure()- Overrides:
isTreasurein classEnchantment
-
isAvailableForEnchantedBookOffer
public boolean isAvailableForEnchantedBookOffer()Returns whether this enchantment will appear in the enchanted book trade offers of librarian villagers.- Overrides:
isAvailableForEnchantedBookOfferin classEnchantment
-
isAvailableForRandomSelection
public boolean isAvailableForRandomSelection()Returns whether this enchantment will appear in the enchanting table or loots with random enchant function.- Overrides:
isAvailableForRandomSelectionin classEnchantment
-
getMaxLevel
public int getMaxLevel()- Overrides:
getMaxLevelin classEnchantment
-