net.minecraft.world.item.enchantment

public class ProtectionEnchantment

extends Enchantment

All mapped superinterfaces:

FeatureElement

dal
net.minecraft.world.item.enchantment.ProtectionEnchantment
net.minecraft.class_1900
net.minecraft.enchantment.ProtectionEnchantment
net.minecraft.src.C_1536_
net.minecraft.world.item.enchantment.EnchantmentProtection

Field summary

Modifier and TypeField
public final ProtectionEnchantment$Type
b
type
field_9133
protectionType
f_45124_

Constructor summary

ModifierConstructor
public (Enchantment$EnchantmentDefinition properties, ProtectionEnchantment$Type protectionType)

Method summary

Modifier and TypeMethod
public int
a(int arg0, brp arg1)
getDamageProtection(int arg0, DamageSource arg1)
method_8181(int arg0, class_1282 arg1)
getProtectionAmount(int arg0, DamageSource arg1)
m_7205_(int p_45134_, C_489_ arg1)
public boolean
a(dac arg0)
checkCompatibility(Enchantment arg0)
method_8180(class_1887 arg0)
canAccept(Enchantment arg0)
m_5975_(C_1505_ arg0)
public static int
a(btr arg0, int arg1)
getFireAfterDampener(LivingEntity arg0, int arg1)
method_8238(class_1309 arg0, int arg1)
transformFireDuration(LivingEntity entity, int duration)
m_45138_(C_524_ p_45139_, int p_45140_)
public static double
a(btr arg0, double arg1)
getExplosionKnockbackAfterDampener(LivingEntity arg0, double arg1)
method_8237(class_1309 arg0, double arg1)
transformExplosionKnockback(LivingEntity entity, double velocity)
m_45135_(C_524_ p_45136_, double p_45137_)