Class SoundPreviewHandler

java.lang.Object
net.minecraft.client.sounds.SoundPreviewHandler

public final class SoundPreviewHandler extends Object
  • Field Details

    • activePreview

      @Nullable private static SoundInstance activePreview
    • previousCategory

      @Nullable private static SoundSource previousCategory
  • Constructor Details

    • SoundPreviewHandler

      public SoundPreviewHandler()
  • Method Details

    • preview

      public static void preview(SoundManager pSoundManager, SoundSource pSource, float pVolume)
    • stopOtherCategoryPreview

      private static void stopOtherCategoryPreview(SoundManager pSoundManager, SoundSource pSoundSource)
    • canPlaySound

      private static boolean canPlaySound(SoundManager pSoundManager)