net.minecraft.enchantment.effect.entity

public record ApplyImpulseEnchantmentEffect

implements EnchantmentEntityEffect

net.minecraft.world.item.enchantment.effects.ApplyEntityImpulse
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
direction
comp_4981
direction
private final Vec3d
coordinateScale
coordinateScale
comp_4982
coordinateScale
private final EnchantmentLevelBasedValue
magnitude
magnitude
comp_4983
magnitude
public static final com.mojang.serialization.MapCodec<ApplyImpulseEnchantmentEffect>
CODEC
CODEC
field_63422
CODEC
private static final int
POST_IMPULSE_CONTEXT_RESET_GRACE_TIME_TICKS
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)
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()
codec()
method_60219()
getCodec()
public Vec3d
direction()
direction()
comp_4981()
direction()
public Vec3d
coordinateScale()
coordinateScale()
comp_4982()
coordinateScale()
public EnchantmentLevelBasedValue
magnitude()
magnitude()
comp_4983()
magnitude()