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.Rarity
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
private static int[]
private static int[]
private static int[]
private static String[]
int
static int
Fields inherited from class net.minecraft.world.item.enchantment.Enchantment
category, descriptionId
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
ConstructorDescriptionDamageEnchantment(Enchantment.Rarity p_44628_, int p_44629_, EquipmentSlot... p_44630_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canEnchant(ItemStack p_44642_)
boolean
checkCompatibility(Enchantment p_44644_)
void
doPostAttack(LivingEntity p_44638_, Entity p_44639_, int p_44640_)
float
getDamageBonus(int p_44635_, MobType p_44636_)
int
getMaxCost(int p_44646_)
int
int
getMinCost(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, isTreasureOnly
Methods 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:
getMinCost
in classEnchantment
-
getMaxCost
public int getMaxCost(int p_44646_)- Overrides:
getMaxCost
in classEnchantment
-
getMaxLevel
public int getMaxLevel()- Overrides:
getMaxLevel
in classEnchantment
-
getDamageBonus
- Overrides:
getDamageBonus
in classEnchantment
-
checkCompatibility
- Overrides:
checkCompatibility
in classEnchantment
-
canEnchant
- Overrides:
canEnchant
in classEnchantment
-
doPostAttack
- Overrides:
doPostAttack
in classEnchantment
-