Class DamageEnchantment
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Enchantment>
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.world.item.enchantment.DamageEnchantment
- All Implemented Interfaces:
IForgeEnchantment,IForgeRegistryEntry<Enchantment>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.enchantment.Enchantment
Enchantment.RarityNested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>> -
Field Summary
FieldsModifier 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.Enchantment
category, descriptionIdFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
ConstructorsConstructorDescriptionDamageEnchantment(Enchantment.Rarity p_44628_, int p_44629_, EquipmentSlot... p_44630_) -
Method Summary
Modifier 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.Enchantment
byId, canApplyAtEnchantingTable, doPostHurt, getDamageProtection, getDescriptionId, getFullname, getMinLevel, getOrCreateDescriptionId, getRarity, getSlotItems, isAllowedOnBooks, isCompatibleWith, isCurse, isDiscoverable, isTradeable, isTreasureOnlyMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods 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
getDamageBonus
-
Field Details
-
ALL
public static final int ALL- See Also:
-
UNDEAD
public static final int UNDEAD- See Also:
-
ARTHROPODS
public static final int ARTHROPODS- See Also:
-
NAMES
-
MIN_COST
private static final int[] MIN_COST -
LEVEL_COST
private static final int[] LEVEL_COST -
LEVEL_COST_SPAN
private static final int[] LEVEL_COST_SPAN -
type
public final int type
-
-
Constructor Details
-
DamageEnchantment
-
-
Method Details
-
getMinCost
public int getMinCost(int p_44633_) - Overrides:
getMinCostin classEnchantment
-
getMaxCost
public int getMaxCost(int p_44646_) - Overrides:
getMaxCostin classEnchantment
-
getMaxLevel
public int getMaxLevel()- Overrides:
getMaxLevelin classEnchantment
-
getDamageBonus
- Overrides:
getDamageBonusin classEnchantment
-
checkCompatibility
- Overrides:
checkCompatibilityin classEnchantment
-
canEnchant
- Overrides:
canEnchantin classEnchantment
-
doPostAttack
- Overrides:
doPostAttackin classEnchantment
-