Class SoundPreviewHandler

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

public final class SoundPreviewHandler extends Object
  • Field Details

    • activePreview

      private static @Nullable SoundInstance activePreview
    • previousCategory

      private static @Nullable SoundSource previousCategory
  • Constructor Details

    • SoundPreviewHandler

      public SoundPreviewHandler()
  • Method Details

    • preview

      public static void preview(SoundManager soundManager, SoundSource category, float volume)
    • stopOtherCategoryPreview

      private static void stopOtherCategoryPreview(SoundManager soundManager, SoundSource category)
    • canPlaySound

      private static boolean canPlaySound(SoundManager soundManager)