Class ThornsEnchantment
java.lang.Object
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.world.item.enchantment.ThornsEnchantment
- All Implemented Interfaces:
IForgeEnchantment
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.enchantment.Enchantment
Enchantment.Rarity -
Field Summary
FieldsFields inherited from class net.minecraft.world.item.enchantment.Enchantment
category, descriptionId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEnchant(ItemStack p_45205_) voiddoPostHurt(LivingEntity p_45215_, Entity p_45216_, int p_45217_) static intgetDamage(int p_220320_, RandomSource p_220321_) intgetMaxCost(int p_45210_) intintgetMinCost(int p_45200_) static booleanshouldHit(int p_220317_, RandomSource p_220318_) Methods inherited from class net.minecraft.world.item.enchantment.Enchantment
builtInRegistryHolder, byId, canApplyAtEnchantingTable, checkCompatibility, doPostAttack, getDamageBonus, getDamageProtection, getDescriptionId, getFullname, getMinLevel, getOrCreateDescriptionId, getRarity, getSlotItems, isAllowedOnBooks, isCompatibleWith, isCurse, isDiscoverable, isTradeable, isTreasureOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeEnchantment
allowedInCreativeTab, getDamageBonus
-
Field Details
-
CHANCE_PER_LEVEL
private static final float CHANCE_PER_LEVEL- See Also:
-
-
Constructor Details
-
ThornsEnchantment
-
-
Method Details
-
getMinCost
public int getMinCost(int p_45200_) - Overrides:
getMinCostin classEnchantment
-
getMaxCost
public int getMaxCost(int p_45210_) - Overrides:
getMaxCostin classEnchantment
-
getMaxLevel
public int getMaxLevel()- Overrides:
getMaxLevelin classEnchantment
-
canEnchant
- Overrides:
canEnchantin classEnchantment
-
doPostHurt
- Overrides:
doPostHurtin classEnchantment
-
shouldHit
-
getDamage
-