Package net.minecraft.client.sounds
Class SoundEngine
java.lang.Object
net.minecraft.client.sounds.SoundEngine
-
Field Summary
Modifier and TypeFieldDescriptionprivate ChannelAccess
private SoundEngineExecutor
private com.google.common.collect.Multimap<SoundSource,SoundInstance>
private Map<SoundInstance,ChannelAccess.ChannelHandle>
private Library
private Listener
private List<SoundEventListener>
private boolean
private static org.apache.logging.log4j.Logger
private static org.apache.logging.log4j.Marker
private static int
static String
private static Set<ResourceLocation>
private Options
private static float
private static float
private Map<SoundInstance,Integer>
private List<TickableSoundInstance>
private SoundBufferLibrary
private Map<SoundInstance,Integer>
private int
private List<TickableSoundInstance>
private static float
private static float
-
Constructor Summary
ConstructorDescriptionSoundEngine(SoundManager p_120236_, Options p_120237_, ResourceManager p_120238_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListener(SoundEventListener p_120296_)
private float
calculatePitch(SoundInstance p_120325_)
private float
calculateVolume(SoundInstance p_120328_)
void
destroy()
private float
getVolume(SoundSource p_120259_)
boolean
isActive(SoundInstance p_120306_)
private void
void
pause()
void
play(SoundInstance p_120313_)
void
playDelayed(SoundInstance p_120277_, int p_120278_)
void
queueTickingSound(TickableSoundInstance p_120283_)
void
reload()
void
removeEventListener(SoundEventListener p_120308_)
void
requestPreload(Sound p_120273_)
private static boolean
requiresManualLooping(SoundInstance p_120316_)
void
resume()
private static boolean
shouldLoopAutomatically(SoundInstance p_120322_)
private static boolean
shouldLoopManually(SoundInstance p_120319_)
void
stop(SoundInstance p_120275_)
void
stop(ResourceLocation p_120300_, SoundSource p_120301_)
void
stopAll()
void
tick(boolean p_120303_)
private void
void
updateCategoryVolume(SoundSource p_120261_, float p_120262_)
void
updateSource(Camera p_120271_)
-
Field Details
-
MARKER
private static final org.apache.logging.log4j.Marker MARKER -
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
PITCH_MIN
private static final float PITCH_MIN- See Also:
- Constant Field Values
-
PITCH_MAX
private static final float PITCH_MAX- See Also:
- Constant Field Values
-
VOLUME_MIN
private static final float VOLUME_MIN- See Also:
- Constant Field Values
-
VOLUME_MAX
private static final float VOLUME_MAX- See Also:
- Constant Field Values
-
MIN_SOURCE_LIFETIME
private static final int MIN_SOURCE_LIFETIME- See Also:
- Constant Field Values
-
ONLY_WARN_ONCE
-
MISSING_SOUND
- See Also:
- Constant Field Values
-
soundManager
-
options
-
loaded
private boolean loaded -
library
-
listener
-
soundBuffers
-
executor
-
channelAccess
-
tickCount
private int tickCount -
instanceToChannel
-
instanceBySource
-
tickingSounds
-
queuedSounds
-
soundDeleteTime
-
listeners
-
queuedTickableSounds
-
preloadQueue
-
-
Constructor Details
-
SoundEngine
-
-
Method Details
-
reload
public void reload() -
loadLibrary
private void loadLibrary() -
getVolume
-
updateCategoryVolume
-
destroy
public void destroy() -
stop
-
stopAll
public void stopAll() -
addEventListener
-
removeEventListener
-
tick
public void tick(boolean p_120303_) -
tickNonPaused
private void tickNonPaused() -
requiresManualLooping
-
shouldLoopManually
-
shouldLoopAutomatically
-
isActive
-
play
-
queueTickingSound
-
requestPreload
-
calculatePitch
-
calculateVolume
-
pause
public void pause() -
resume
public void resume() -
playDelayed
-
updateSource
-
stop
-
getDebugString
-