net.minecraft.world.item.enchantment.effects

public record DamageEntity

implements EnchantmentEntityEffect

den
net.minecraft.world.item.enchantment.effects.DamageEntity
net.minecraft.class_9717
net.minecraft.enchantment.effect.entity.DamageEntityEnchantmentEffect
net.minecraft.world.item.enchantment.effects.DamageEntity

Field summary

Modifier and TypeField
private final LevelBasedValue
d
minDamage
comp_2713
minDamage
private final LevelBasedValue
e
maxDamage
comp_2714
maxDamage
private final Holder<DamageType>
f
damageType
comp_2715
damageType
public static final com.mojang.serialization.MapCodec<DamageEntity>
a
CODEC
field_51702
CODEC

Constructor summary

ModifierConstructor
public (LevelBasedValue arg0, LevelBasedValue arg1, Holder<DamageType> arg2)

Method summary

Modifier and TypeMethod
public void
a(ash arg0, int arg1, ddy arg2, bvk arg3, fby arg4)
apply(ServerLevel arg0, int arg1, EnchantedItemInUse arg2, Entity arg3, Vec3 arg4)
method_60220(class_3218 arg0, int arg1, class_9699 arg2, class_1297 arg3, class_243 arg4)
apply(ServerWorld arg0, int arg1, EnchantmentEffectContext arg2, Entity arg3, Vec3d arg4)
public com.mojang.serialization.MapCodec<DamageEntity>
a()
codec()
method_60219()
getCodec()
public LevelBasedValue
b()
minDamage()
comp_2713()
minDamage()
public LevelBasedValue
c()
maxDamage()
comp_2714()
maxDamage()
public Holder<DamageType>
d()
damageType()
comp_2715()
damageType()