Class SoundPreviewer

java.lang.Object
net.minecraft.client.sound.SoundPreviewer

@Environment(CLIENT) public final class SoundPreviewer extends Object
Mappings:
Namespace Name
named net/minecraft/client/sound/SoundPreviewer
intermediary net/minecraft/class_12052
official ihr
  • Field Details

    • currentSoundPreview

      @Nullable private static @Nullable SoundInstance currentSoundPreview
      Mappings:
      Namespace Name Mixin selector
      named currentSoundPreview Lnet/minecraft/client/sound/SoundPreviewer;currentSoundPreview:Lnet/minecraft/client/sound/SoundInstance;
      intermediary field_62992 Lnet/minecraft/class_12052;field_62992:Lnet/minecraft/class_1113;
      official a Lihr;a:Ligk;
    • category

      @Nullable private static @Nullable SoundCategory category
      Mappings:
      Namespace Name Mixin selector
      named category Lnet/minecraft/client/sound/SoundPreviewer;category:Lnet/minecraft/sound/SoundCategory;
      intermediary field_62993 Lnet/minecraft/class_12052;field_62993:Lnet/minecraft/class_3419;
      official b Lihr;b:Lbcf;
  • Constructor Details

    • SoundPreviewer

      public SoundPreviewer()
  • Method Details

    • preview

      public static void preview(SoundManager manager, SoundCategory category, float pitch)
      Mappings:
      Namespace Name Mixin selector
      named preview Lnet/minecraft/client/sound/SoundPreviewer;preview(Lnet/minecraft/client/sound/SoundManager;Lnet/minecraft/sound/SoundCategory;F)V
      intermediary method_74840 Lnet/minecraft/class_12052;method_74840(Lnet/minecraft/class_1144;Lnet/minecraft/class_3419;F)V
      official a Lihr;a(Lihq;Lbcf;F)V
    • stopPreviewOfOtherCategory

      private static void stopPreviewOfOtherCategory(SoundManager manager, SoundCategory category)
      Mappings:
      Namespace Name Mixin selector
      named stopPreviewOfOtherCategory Lnet/minecraft/client/sound/SoundPreviewer;stopPreviewOfOtherCategory(Lnet/minecraft/client/sound/SoundManager;Lnet/minecraft/sound/SoundCategory;)V
      intermediary method_74839 Lnet/minecraft/class_12052;method_74839(Lnet/minecraft/class_1144;Lnet/minecraft/class_3419;)V
      official a Lihr;a(Lihq;Lbcf;)V
    • canPlaySound

      private static boolean canPlaySound(SoundManager manager)
      Mappings:
      Namespace Name Mixin selector
      named canPlaySound Lnet/minecraft/client/sound/SoundPreviewer;canPlaySound(Lnet/minecraft/client/sound/SoundManager;)Z
      intermediary method_74838 Lnet/minecraft/class_12052;method_74838(Lnet/minecraft/class_1144;)Z
      official a Lihr;a(Lihq;)Z