Package net.minecraft.enchantment
Class PiercingEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.PiercingEnchantment
public class PiercingEnchantment 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 PiercingEnchantment(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
-
PiercingEnchantment
-
-
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
-