Interface ExtendedSoundType.EquivalentEffectSoundAcceptor

Enclosing class:
ExtendedSoundType

public static interface ExtendedSoundType.EquivalentEffectSoundAcceptor
An interface that serves as a context-appropriate vanilla-matching playSound call. Volume and Pitch parameters will be modified in the same way as vanilla does it for block sounds. Avoid this if you want more precise control over volume/pitch.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    playSound(Supplier<net.minecraft.sounds.SoundEvent> event, float volume, float pitch)
     
    void
    playSound(net.minecraft.sounds.SoundEvent event, float volume, float pitch)
     
  • Method Details

    • playSound

      default void playSound(Supplier<net.minecraft.sounds.SoundEvent> event, float volume, float pitch)
    • playSound

      void playSound(net.minecraft.sounds.SoundEvent event, float volume, float pitch)