Class SoundEngine

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

@Environment(CLIENT) public class SoundEngine extends Object
Mappings:
Namespace Name
official efb
intermediary net/minecraft/class_4225
named net/minecraft/client/sound/SoundEngine
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lefb;a:Lorg/slf4j/Logger;
      intermediary field_18897 Lnet/minecraft/class_4225;field_18897:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/sound/SoundEngine;LOGGER:Lorg/slf4j/Logger;
    • field_34945

      private static final int field_34945
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lefb;b:I
      intermediary field_34945 Lnet/minecraft/class_4225;field_34945:I
      named field_34945 Lnet/minecraft/client/sound/SoundEngine;field_34945:I
    • field_31897

      private static final int field_31897
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lefb;c:I
      intermediary field_31897 Lnet/minecraft/class_4225;field_31897:I
      named field_31897 Lnet/minecraft/client/sound/SoundEngine;field_31897:I
    • EMPTY_SOURCE_SET

      private static final SoundEngine.SourceSet EMPTY_SOURCE_SET
      Mappings:
      Namespace Name Mixin selector
      official h Lefb;h:Lefb$a;
      intermediary field_19183 Lnet/minecraft/class_4225;field_19183:Lnet/minecraft/class_4225$class_4276;
      named EMPTY_SOURCE_SET Lnet/minecraft/client/sound/SoundEngine;EMPTY_SOURCE_SET:Lnet/minecraft/client/sound/SoundEngine$SourceSet;
    • devicePointer

      private long devicePointer
      Mappings:
      Namespace Name Mixin selector
      official d Lefb;d:J
      intermediary field_18898 Lnet/minecraft/class_4225;field_18898:J
      named devicePointer Lnet/minecraft/client/sound/SoundEngine;devicePointer:J
    • contextPointer

      private long contextPointer
      Mappings:
      Namespace Name Mixin selector
      official e Lefb;e:J
      intermediary field_18899 Lnet/minecraft/class_4225;field_18899:J
      named contextPointer Lnet/minecraft/client/sound/SoundEngine;contextPointer:J
    • disconnectExtensionPresent

      private boolean disconnectExtensionPresent
      Mappings:
      Namespace Name Mixin selector
      official f Lefb;f:Z
      intermediary field_34946 Lnet/minecraft/class_4225;field_34946:Z
      named disconnectExtensionPresent Lnet/minecraft/client/sound/SoundEngine;disconnectExtensionPresent:Z
    • deviceSpecifier

      @Nullable private @Nullable String deviceSpecifier
      Mappings:
      Namespace Name Mixin selector
      official g Lefb;g:Ljava/lang/String;
      intermediary field_34947 Lnet/minecraft/class_4225;field_34947:Ljava/lang/String;
      named deviceSpecifier Lnet/minecraft/client/sound/SoundEngine;deviceSpecifier:Ljava/lang/String;
    • streamingSources

      private SoundEngine.SourceSet streamingSources
      Mappings:
      Namespace Name Mixin selector
      official i Lefb;i:Lefb$a;
      intermediary field_19184 Lnet/minecraft/class_4225;field_19184:Lnet/minecraft/class_4225$class_4276;
      named streamingSources Lnet/minecraft/client/sound/SoundEngine;streamingSources:Lnet/minecraft/client/sound/SoundEngine$SourceSet;
    • staticSources

      private SoundEngine.SourceSet staticSources
      Mappings:
      Namespace Name Mixin selector
      official j Lefb;j:Lefb$a;
      intermediary field_19185 Lnet/minecraft/class_4225;field_19185:Lnet/minecraft/class_4225$class_4276;
      named staticSources Lnet/minecraft/client/sound/SoundEngine;staticSources:Lnet/minecraft/client/sound/SoundEngine$SourceSet;
    • listener

      private final SoundListener listener
      Mappings:
      Namespace Name Mixin selector
      official k Lefb;k:Lefc;
      intermediary field_18902 Lnet/minecraft/class_4225;field_18902:Lnet/minecraft/class_4227;
      named listener Lnet/minecraft/client/sound/SoundEngine;listener:Lnet/minecraft/client/sound/SoundListener;
  • Constructor Details

    • SoundEngine

      public SoundEngine()
  • Method Details

    • init

      public void init(@Nullable @Nullable String deviceSpecifier, boolean directionalAudio)
      Mappings:
      Namespace Name Mixin selector
      official a Lefb;a(Ljava/lang/String;Z)V
      intermediary method_19661 Lnet/minecraft/class_4225;method_19661(Ljava/lang/String;Z)V
      named init Lnet/minecraft/client/sound/SoundEngine;init(Ljava/lang/String;Z)V
    • setDirectionalAudio

      private void setDirectionalAudio(boolean enabled)
      Mappings:
      Namespace Name Mixin selector
      official a Lefb;a(Z)V
      intermediary method_41711 Lnet/minecraft/class_4225;method_41711(Z)V
      named setDirectionalAudio Lnet/minecraft/client/sound/SoundEngine;setDirectionalAudio(Z)V
    • getMonoSourceCount

      private int getMonoSourceCount()
      Mappings:
      Namespace Name Mixin selector
      official i Lefb;i()I
      intermediary method_20297 Lnet/minecraft/class_4225;method_20297()I
      named getMonoSourceCount Lnet/minecraft/client/sound/SoundEngine;getMonoSourceCount()I
    • findAvailableDeviceSpecifier

      @Nullable public static @Nullable String findAvailableDeviceSpecifier()
      Mappings:
      Namespace Name Mixin selector
      official a Lefb;a()Ljava/lang/String;
      intermediary method_38500 Lnet/minecraft/class_4225;method_38500()Ljava/lang/String;
      named findAvailableDeviceSpecifier Lnet/minecraft/client/sound/SoundEngine;findAvailableDeviceSpecifier()Ljava/lang/String;
    • getCurrentDeviceName

      public String getCurrentDeviceName()
      Mappings:
      Namespace Name Mixin selector
      official b Lefb;b()Ljava/lang/String;
      intermediary method_38722 Lnet/minecraft/class_4225;method_38722()Ljava/lang/String;
      named getCurrentDeviceName Lnet/minecraft/client/sound/SoundEngine;getCurrentDeviceName()Ljava/lang/String;
    • updateDeviceSpecifier

      public boolean updateDeviceSpecifier()
      Mappings:
      Namespace Name Mixin selector
      official c Lefb;c()Z
      intermediary method_38723 Lnet/minecraft/class_4225;method_38723()Z
      named updateDeviceSpecifier Lnet/minecraft/client/sound/SoundEngine;updateDeviceSpecifier()Z
    • openDeviceOrFallback

      private static long openDeviceOrFallback(@Nullable @Nullable String deviceSpecifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lefb;a(Ljava/lang/String;)J
      intermediary method_38501 Lnet/minecraft/class_4225;method_38501(Ljava/lang/String;)J
      named openDeviceOrFallback Lnet/minecraft/client/sound/SoundEngine;openDeviceOrFallback(Ljava/lang/String;)J
    • openDevice

      private static OptionalLong openDevice(@Nullable @Nullable String deviceSpecifier)
      Mappings:
      Namespace Name Mixin selector
      official b Lefb;b(Ljava/lang/String;)Ljava/util/OptionalLong;
      intermediary method_20050 Lnet/minecraft/class_4225;method_20050(Ljava/lang/String;)Ljava/util/OptionalLong;
      named openDevice Lnet/minecraft/client/sound/SoundEngine;openDevice(Ljava/lang/String;)Ljava/util/OptionalLong;
    • close

      public void close()
      Mappings:
      Namespace Name Mixin selector
      official d Lefb;d()V
      intermediary method_19664 Lnet/minecraft/class_4225;method_19664()V
      named close Lnet/minecraft/client/sound/SoundEngine;close()V
    • getListener

      public SoundListener getListener()
      Mappings:
      Namespace Name Mixin selector
      official e Lefb;e()Lefc;
      intermediary method_19665 Lnet/minecraft/class_4225;method_19665()Lnet/minecraft/class_4227;
      named getListener Lnet/minecraft/client/sound/SoundEngine;getListener()Lnet/minecraft/client/sound/SoundListener;
    • createSource

      @Nullable public @Nullable Source createSource(SoundEngine.RunMode mode)
      Mappings:
      Namespace Name Mixin selector
      official a Lefb;a(Lefb$c;)Lefa;
      intermediary method_19663 Lnet/minecraft/class_4225;method_19663(Lnet/minecraft/class_4225$class_4105;)Lnet/minecraft/class_4224;
      named createSource Lnet/minecraft/client/sound/SoundEngine;createSource(Lnet/minecraft/client/sound/SoundEngine$RunMode;)Lnet/minecraft/client/sound/Source;
    • release

      public void release(Source source)
      Mappings:
      Namespace Name Mixin selector
      official a Lefb;a(Lefa;)V
      intermediary method_19662 Lnet/minecraft/class_4225;method_19662(Lnet/minecraft/class_4224;)V
      named release Lnet/minecraft/client/sound/SoundEngine;release(Lnet/minecraft/client/sound/Source;)V
    • getDebugString

      public String getDebugString()
      Mappings:
      Namespace Name Mixin selector
      official f Lefb;f()Ljava/lang/String;
      intermediary method_20296 Lnet/minecraft/class_4225;method_20296()Ljava/lang/String;
      named getDebugString Lnet/minecraft/client/sound/SoundEngine;getDebugString()Ljava/lang/String;
    • getSoundDevices

      public List<String> getSoundDevices()
      Mappings:
      Namespace Name Mixin selector
      official g Lefb;g()Ljava/util/List;
      intermediary method_38502 Lnet/minecraft/class_4225;method_38502()Ljava/util/List;
      named getSoundDevices Lnet/minecraft/client/sound/SoundEngine;getSoundDevices()Ljava/util/List;
    • isDeviceUnavailable

      public boolean isDeviceUnavailable()
      Mappings:
      Namespace Name Mixin selector
      official h Lefb;h()Z
      intermediary method_38724 Lnet/minecraft/class_4225;method_38724()Z
      named isDeviceUnavailable Lnet/minecraft/client/sound/SoundEngine;isDeviceUnavailable()Z