net.minecraft.world.item.enchantment.effects

public record ApplyEntityImpulse

implements EnchantmentEntityEffect

drs
net.minecraft.world.item.enchantment.effects.ApplyEntityImpulse
net.minecraft.class_12129
net.minecraft.enchantment.effect.entity.ApplyImpulseEnchantmentEffect

Field summary

Modifier and TypeField
private final Vec3
d
direction
comp_4981
direction
private final Vec3
e
coordinateScale
comp_4982
coordinateScale
private final LevelBasedValue
f
magnitude
comp_4983
magnitude
public static final com.mojang.serialization.MapCodec<ApplyEntityImpulse>
a
CODEC
field_63422
CODEC

Constructor summary

ModifierConstructor
public (Vec3 direction, Vec3 coordinateScale, LevelBasedValue magnitude)

Method summary

Modifier and TypeMethod
public void
a(axf arg0, int arg1, drf arg2, cgi arg3, fse 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<ApplyEntityImpulse>
a()
codec()
method_60219()
getCodec()
public Vec3
b()
direction()
comp_4981()
direction()
public Vec3
c()
coordinateScale()
comp_4982()
coordinateScale()
public LevelBasedValue
d()
magnitude()
comp_4983()
magnitude()