net.minecraft.enchantment.effect.entity

public record ApplyImpulseEnchantmentEffect

implements EnchantmentEntityEffect

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

Field summary

Modifier and TypeField
private final Vec3d
direction
comp_4981
direction
private final Vec3d
coordinateScale
comp_4982
coordinateScale
private final EnchantmentLevelBasedValue
magnitude
comp_4983
magnitude
public static final com.mojang.serialization.MapCodec<ApplyImpulseEnchantmentEffect>
CODEC
field_63422
CODEC
private static final int
POST_IMPULSE_CONTEXT_RESET_GRACE_TIME_TICKS
field_64656
CURRENT_EXPLOSION_RESET_GRACE_TIME

Constructor summary

ModifierConstructor
public (Vec3d direction, Vec3d coordinateScale, EnchantmentLevelBasedValue magnitude)

Method summary

Modifier and TypeMethod
public void
apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position)
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<ApplyImpulseEnchantmentEffect>
codec()
method_60219()
getCodec()
public Vec3d
direction()
comp_4981()
direction()
public Vec3d
coordinateScale()
comp_4982()
coordinateScale()
public EnchantmentLevelBasedValue
magnitude()
comp_4983()
magnitude()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_75258(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_75258(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)