Class DamageEnchantment
java.lang.Object
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.world.item.enchantment.DamageEnchantment
- All Implemented Interfaces:
- IEnchantmentExtension
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.enchantment.EnchantmentEnchantment.Rarity
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate static final int[]private static final int[]private static final int[]private static final String[]final intstatic final intFields inherited from class net.minecraft.world.item.enchantment.Enchantmentcategory, descriptionId
- 
Constructor SummaryConstructorsConstructorDescriptionDamageEnchantment(Enchantment.Rarity p_44628_, int p_44629_, EquipmentSlot... p_44630_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanEnchant(ItemStack p_44642_) booleancheckCompatibility(Enchantment p_44644_) voiddoPostAttack(LivingEntity p_44638_, Entity p_44639_, int p_44640_) floatgetDamageBonus(int p_44635_, MobType p_44636_) intgetMaxCost(int p_44646_) intintgetMinCost(int p_44633_) Methods inherited from class net.minecraft.world.item.enchantment.EnchantmentbuiltInRegistryHolder, byId, canApplyAtEnchantingTable, doPostHurt, 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.neoforged.neoforge.common.extensions.IEnchantmentExtensionallowedInCreativeTab, getDamageBonus
- 
Field Details- 
ALLpublic static final int ALL- See Also:
 
- 
UNDEADpublic static final int UNDEAD- See Also:
 
- 
ARTHROPODSpublic static final int ARTHROPODS- See Also:
 
- 
NAMES
- 
MIN_COSTprivate static final int[] MIN_COST
- 
LEVEL_COSTprivate static final int[] LEVEL_COST
- 
LEVEL_COST_SPANprivate static final int[] LEVEL_COST_SPAN
- 
typepublic final int type
 
- 
- 
Constructor Details- 
DamageEnchantment
 
- 
- 
Method Details- 
getMinCostpublic int getMinCost(int p_44633_) - Overrides:
- getMinCostin class- Enchantment
 
- 
getMaxCostpublic int getMaxCost(int p_44646_) - Overrides:
- getMaxCostin class- Enchantment
 
- 
getMaxLevelpublic int getMaxLevel()- Overrides:
- getMaxLevelin class- Enchantment
 
- 
getDamageBonus- Overrides:
- getDamageBonusin class- Enchantment
 
- 
checkCompatibility- Overrides:
- checkCompatibilityin class- Enchantment
 
- 
canEnchant- Overrides:
- canEnchantin class- Enchantment
 
- 
doPostAttack- Overrides:
- doPostAttackin class- Enchantment
 
 
-