net.minecraft.world.item.enchantment

public class DamageEnchantment

extends Enchantment

crg
net.minecraft.world.item.enchantment.DamageEnchantment
net.minecraft.class_1882
net.minecraft.enchantment.DamageEnchantment
net.minecraft.src.C_1502_
net.minecraft.world.item.enchantment.EnchantmentWeaponDamage

Field summary

Modifier and TypeField
public static final int
a
ALL
field_30947
ALL_INDEX
f_151289_
public static final int
b
UNDEAD
field_30948
UNDEAD_INDEX
f_151290_
public static final int
c
ARTHROPODS
field_30949
ARTHROPODS_INDEX
f_151291_
private static final String[]
g
NAMES
field_9065
TYPE_NAMES
f_44622_
private static final int[]
h
MIN_COST
field_9063
BASE_POWERS
f_44623_
private static final int[]
i
LEVEL_COST
field_9066
POWERS_PER_LEVEL
f_44624_
private static final int[]
j
LEVEL_COST_SPAN
field_9064
MIN_MAX_POWER_DIFFERENCES
f_44625_
public final int
d
type
field_9067
typeIndex
f_44621_

Constructor summary

ModifierConstructor
public (Enchantment$Rarity weight, int typeIndex, EquipmentSlot... slots)

Method summary

Modifier and TypeMethod
public int
a(int arg0)
getMinCost(int arg0)
method_8182(int arg0)
getMinPower(int arg0)
m_6183_(int arg0)
public int
b(int arg0)
getMaxCost(int arg0)
method_20742(int arg0)
getMaxPower(int arg0)
m_6175_(int arg0)
public int
a()
getMaxLevel()
method_8183()
getMaxLevel()
m_6586_()
public float
a(int arg0, bmq arg1)
getDamageBonus(int arg0, MobType arg1)
method_8196(int arg0, class_1310 arg1)
getAttackDamage(int arg0, EntityGroup arg1)
m_7335_(int p_44636_, C_530_ arg1)
public boolean
a(crj arg0)
checkCompatibility(Enchantment arg0)
method_8180(class_1887 arg0)
canAccept(Enchantment arg0)
m_5975_(C_1505_ arg0)
public boolean
a(cmy arg0)
canEnchant(ItemStack arg0)
method_8192(class_1799 arg0)
isAcceptableItem(ItemStack arg0)
m_6081_(C_1391_ arg0)
public void
a(bml arg0, blv arg1, int arg2)
doPostAttack(LivingEntity arg0, Entity arg1, int arg2)
method_8189(class_1309 arg0, class_1297 arg1, int arg2)
onTargetDamaged(LivingEntity arg0, Entity arg1, int arg2)
m_7677_(C_524_ p_44639_, C_507_ p_44640_, int arg2)