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:
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 intstatic intprivate static int[]private static int[]private static int[]private static String[]intstatic 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, getTags, is, isAllowedOnBooks, isCompatibleWith, isCurse, isDiscoverable, isTradeable, isTreasureOnlyMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Field Details
-
ALL
public static final int ALL- See Also:
- Constant Field Values
-
UNDEAD
public static final int UNDEAD- See Also:
- Constant Field Values
-
ARTHROPODS
public static final int ARTHROPODS- See Also:
- Constant Field Values
-
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
-