Class SoundEngine

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

public class SoundEngine extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • reload

      public void reload()
    • loadLibrary

      private void loadLibrary()
    • refreshCategoryVolume

      public void refreshCategoryVolume(SoundSource source)
    • destroy

      public void destroy()
    • emergencyShutdown

      public void emergencyShutdown()
    • stop

      public void stop(SoundInstance soundInstance)
    • updateCategoryVolume

      public void updateCategoryVolume(SoundSource source, float gain)
    • stopAll

      public void stopAll()
    • addEventListener

      public void addEventListener(SoundEventListener listener)
    • removeEventListener

      public void removeEventListener(SoundEventListener listener)
    • shouldChangeDevice

      private boolean shouldChangeDevice()
    • tick

      public void tick(boolean paused)
    • tickInGameSound

      private void tickInGameSound()
    • tickMusicWhenPaused

      private void tickMusicWhenPaused()
    • requiresManualLooping

      private static boolean requiresManualLooping(SoundInstance instance)
    • shouldLoopManually

      private static boolean shouldLoopManually(SoundInstance instance)
    • shouldLoopAutomatically

      private static boolean shouldLoopAutomatically(SoundInstance instance)
    • isActive

      public boolean isActive(SoundInstance instance)
    • play

      public SoundEngine.PlayResult play(SoundInstance instance)
    • queueTickingSound

      public void queueTickingSound(TickableSoundInstance tickableSoundInstance)
    • requestPreload

      public void requestPreload(Sound sound)
    • calculatePitch

      private float calculatePitch(SoundInstance instance)
    • calculateVolume

      private float calculateVolume(SoundInstance instance)
    • calculateVolume

      private float calculateVolume(float volume, SoundSource source)
    • pauseAllExcept

      public void pauseAllExcept(SoundSource... ignoredSources)
    • resume

      public void resume()
    • playDelayed

      public void playDelayed(SoundInstance instance, int delay)
    • updateSource

      public void updateSource(Camera camera)
    • stop

      public void stop(@Nullable Identifier sound, @Nullable SoundSource source)
    • getChannelDebugString

      public String getChannelDebugString()
    • getSoundCacheDebugStats

      public void getSoundCacheDebugStats(SoundBufferLibrary.DebugOutput output)
    • getAvailableSoundDevices

      public List<String> getAvailableSoundDevices()
    • getListenerTransform

      public ListenerTransform getListenerTransform()