Class ProtectionEnchantment
java.lang.Object
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.world.item.enchantment.ProtectionEnchantment
- All Implemented Interfaces:
- IForgeEnchantment
- 
Nested Class SummaryNested ClassesNested 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 SummaryConstructorsConstructorDescriptionProtectionEnchantment(Enchantment.Rarity p_45126_, ProtectionEnchantment.Type p_45127_, EquipmentSlot... p_45128_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancheckCompatibility(Enchantment p_45142_) intgetDamageProtection(int p_45133_, DamageSource p_45134_) static doublegetExplosionKnockbackAfterDampener(LivingEntity p_45136_, double p_45137_) static intgetFireAfterDampener(LivingEntity p_45139_, int p_45140_) intgetMaxCost(int p_45144_) intintgetMinCost(int p_45131_) Methods inherited from class net.minecraft.world.item.enchantment.EnchantmentbuiltInRegistryHolder, byId, canApplyAtEnchantingTable, canEnchant, doPostAttack, doPostHurt, getDamageBonus, 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- 
type
 
- 
- 
Constructor Details- 
ProtectionEnchantmentpublic ProtectionEnchantment(Enchantment.Rarity p_45126_, ProtectionEnchantment.Type p_45127_, EquipmentSlot... p_45128_) 
 
- 
- 
Method Details- 
getMinCostpublic int getMinCost(int p_45131_) - Overrides:
- getMinCostin class- Enchantment
 
- 
getMaxCostpublic int getMaxCost(int p_45144_) - Overrides:
- getMaxCostin class- Enchantment
 
- 
getMaxLevelpublic int getMaxLevel()- Overrides:
- getMaxLevelin class- Enchantment
 
- 
getDamageProtection- Overrides:
- getDamageProtectionin class- Enchantment
 
- 
checkCompatibility- Overrides:
- checkCompatibilityin class- Enchantment
 
- 
getFireAfterDampener
- 
getExplosionKnockbackAfterDampener
 
-