net.minecraft.enchantment

public abstract class Enchantment

aft
net.minecraft.class_1127
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.Enchantment

Field summary

Modifier and TypeField
public static final Enchantment[]
b
field_4454
BY_ID
enchantmentsList
public static final Enchantment[]
c
field_5457
ALL
enchantmentsBookList
public static final Enchantment
d
field_4455
PROTECTION
protection
public static final Enchantment
e
field_4456
FIRE_PROTECTION
fireProtection
public static final Enchantment
f
field_4457
FEATHER_FALLING
featherFalling
public static final Enchantment
g
field_4458
BLAST_PROTECTION
blastProtection
public static final Enchantment
h
field_4459
PROJECTILE_PROTECTION
projectileProtection
public static final Enchantment
i
field_4460
RESPIRATION
respiration
public static final Enchantment
j
field_4461
AQUA_AFFINITY
aquaAffinity
public static final Enchantment
k
field_5458
THORNS
thorns
public static final Enchantment
l
field_4462
SHARPNESS
sharpness
public static final Enchantment
m
field_4463
SMITE
smite
public static final Enchantment
n
field_4464
BANE_OF_ARTHROPODS
baneOfArthropods
public static final Enchantment
o
field_4465
KNOCKBACK
knockback
public static final Enchantment
p
field_4466
FIRE_ASPECT
fireAspect
public static final Enchantment
q
field_4467
LOOTING
looting
public static final Enchantment
r
field_4468
EFFICIENCY
efficiency
public static final Enchantment
s
field_4469
SILK_TOUCH
silkTouch
public static final Enchantment
t
field_4470
UNBREAKING
unbreaking
public static final Enchantment
u
field_4471
FORTUNE
fortune
public static final Enchantment
v
field_4472
POWER
power
public static final Enchantment
w
field_4473
PUNCH
punch
public static final Enchantment
x
field_4474
FLAME
flame
public static final Enchantment
y
field_4475
INFINITY
infinity
public static final Enchantment
z
field_7156
LUCK_OF_THE_SEA
luckOfTheSea
public static final Enchantment
A
field_7155
LURE
lure
public final int
B
field_4476
id
effectId
private final int
a
field_4453
type
weight
public EnchantmentCategory
C
field_4477
category
type
protected String
D
field_4478
key
name

Constructor summary

ModifierConstructor
protected (int id, int type, EnchantmentCategory category)

Method summary

Modifier and TypeMethod
public int
c()
method_3515()
getType()
getWeight()
public int
d()
method_3517()
getMinLevel()
getMinLevel()
public int
b()
method_3512()
getMaxLevel()
getMaxLevel()
public int
a(int arg0)
method_3508(int arg0)
getMinXpRequirement(int level)
getMinEnchantability(int arg0)
public int
b(int arg0)
method_3513(int arg0)
getMaxXpRequirement(int level)
getMaxEnchantability(int arg0)
public int
a(int arg0, ro arg1)
method_3509(int arg0, class_856 arg1)
getExtraProtection(int level, DamageSource source)
calcModifierDamage(int arg0, DamageSource arg1)
public float
a(int arg0, sz arg1)
method_5489(int arg0, class_873 arg1)
getExtraDamage(int level, MobType mobType)
func_152376_a(int arg0, EnumCreatureAttribute arg1)
public boolean
a(aft arg0)
method_3511(class_1127 arg0)
isCompatible(Enchantment other)
canApplyTogether(Enchantment arg0)
public Enchantment
b(String arg0)
method_3514(String arg0)
setKey(String key)
setName(String arg0)
public String
a()
method_3507()
getTranslationKey()
getName()
public String
c(int arg0)
method_3516(int arg0)
getName(int level)
getTranslatedName(int arg0)
public boolean
a(add arg0)
method_4644(class_1071 arg0)
canEnchant(ItemStack item)
canApply(ItemStack arg0)
public void
a(sv arg0, sa arg1, int arg2)
method_6381(class_1699 arg0, class_864 arg1, int arg2)
applyDamageWildcard(LivingEntity attacker, Entity target, int level)
func_151368_a(EntityLivingBase arg0, Entity arg1, int arg2)
public void
b(sv arg0, sa arg1, int arg2)
method_6382(class_1699 arg0, class_864 arg1, int arg2)
applyProtectionWildcard(LivingEntity attacker, Entity target, int level)
func_151367_b(EntityLivingBase arg0, Entity arg1, int arg2)