net.minecraft.world.item.enchantment.effects

public record PlaySoundEffect

implements EnchantmentEntityEffect

dew
net.minecraft.world.item.enchantment.effects.PlaySoundEffect
net.minecraft.class_9727
net.minecraft.enchantment.effect.entity.PlaySoundEnchantmentEffect
net.minecraft.world.item.enchantment.effects.PlaySoundEffect

Field summary

Modifier and TypeField
private final Holder<SoundEvent>
d
soundEvent
comp_2735
soundEvent
private final FloatProvider
e
volume
comp_2736
volume
private final FloatProvider
f
pitch
comp_2737
pitch
public static final com.mojang.serialization.MapCodec<PlaySoundEffect>
a
CODEC
field_51713
CODEC

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> arg0, FloatProvider arg1, FloatProvider 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<PlaySoundEffect>
a()
codec()
method_60219()
getCodec()
public Holder<SoundEvent>
b()
soundEvent()
comp_2735()
soundEvent()
public FloatProvider
c()
volume()
comp_2736()
volume()
public FloatProvider
d()
pitch()
comp_2737()
pitch()