Class ThornsEnchantment
java.lang.Object
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.world.item.enchantment.ThornsEnchantment
- All Implemented Interfaces:
- IForgeEnchantment
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.enchantment.EnchantmentEnchantment.Rarity
- 
Field SummaryFieldsFields inherited from class net.minecraft.world.item.enchantment.Enchantmentcategory, descriptionId
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.EnchantmentbuiltInRegistryHolder, byId, canApplyAtEnchantingTable, checkCompatibility, doPostAttack, getDamageBonus, getDamageProtection, getDescriptionId, getFullname, getMinLevel, getOrCreateDescriptionId, getRarity, getSlotItems, isAllowedOnBooks, isCompatibleWith, isCurse, isDiscoverable, isTradeable, isTreasureOnlyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeEnchantmentallowedInCreativeTab, getDamageBonus
- 
Field Details- 
CHANCE_PER_LEVELprivate static final float CHANCE_PER_LEVEL- See Also:
 
 
- 
- 
Constructor Details- 
ThornsEnchantment
 
- 
- 
Method Details- 
getMinCostpublic int getMinCost(int p_45200_) - Overrides:
- getMinCostin class- Enchantment
 
- 
getMaxCostpublic int getMaxCost(int p_45210_) - Overrides:
- getMaxCostin class- Enchantment
 
- 
getMaxLevelpublic int getMaxLevel()- Overrides:
- getMaxLevelin class- Enchantment
 
- 
canEnchant- Overrides:
- canEnchantin class- Enchantment
 
- 
doPostHurt- Overrides:
- doPostHurtin class- Enchantment
 
- 
shouldHit
- 
getDamage
 
-