Package net.minecraft.enchantment
Class InfinityEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.InfinityEnchantment
public class InfinityEnchantment 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 InfinityEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
-
Method Summary
Modifier and Type Method Description boolean
canAccept(Enchantment other)
Returns whether this enchantment can exist on an item stack with theother
enchantment.int
getMaxLevel()
int
getMaxPower(int level)
int
getMinPower(int level)
Methods inherited from class net.minecraft.enchantment.Enchantment
byRawId, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAcceptableItem, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamaged, onUserDamaged
-
Constructor Details
-
InfinityEnchantment
-
-
Method Details
-
getMinPower
public int getMinPower(int level)- Overrides:
getMinPower
in classEnchantment
-
getMaxPower
public int getMaxPower(int level)- Overrides:
getMaxPower
in classEnchantment
-
getMaxLevel
public int getMaxLevel()- Overrides:
getMaxLevel
in classEnchantment
-
canAccept
Returns whether this enchantment can exist on an item stack with theother
enchantment.- Overrides:
canAccept
in classEnchantment
-