Package net.minecraft.client.sounds
Class SoundEngine
java.lang.Object
net.minecraft.client.sounds.SoundEngine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelAccessprivate SoundEngineExecutorprivate com.google.common.collect.Multimap<SoundSource,SoundInstance>private Map<SoundInstance,ChannelAccess.ChannelHandle>private Libraryprivate Listenerprivate List<SoundEventListener>private booleanprivate static org.apache.logging.log4j.Loggerprivate static org.apache.logging.log4j.Markerprivate static intstatic Stringprivate static Set<ResourceLocation>private Optionsprivate static floatprivate static floatprivate Map<SoundInstance,Integer>private List<TickableSoundInstance>private SoundBufferLibraryprivate Map<SoundInstance,Integer>private intprivate List<TickableSoundInstance>private static floatprivate static float -
Constructor Summary
ConstructorsConstructorDescriptionSoundEngine(SoundManager p_120236_, Options p_120237_, ResourceManager p_120238_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(SoundEventListener p_120296_)private floatcalculatePitch(SoundInstance p_120325_)private floatcalculateVolume(SoundInstance p_120328_)voiddestroy()private floatgetVolume(SoundSource p_120259_)booleanisActive(SoundInstance p_120306_)private voidvoidpause()voidplay(SoundInstance p_120313_)voidplayDelayed(SoundInstance p_120277_, int p_120278_)voidqueueTickingSound(TickableSoundInstance p_120283_)voidreload()voidremoveEventListener(SoundEventListener p_120308_)voidrequestPreload(Sound p_120273_)private static booleanrequiresManualLooping(SoundInstance p_120316_)voidresume()private static booleanshouldLoopAutomatically(SoundInstance p_120322_)private static booleanshouldLoopManually(SoundInstance p_120319_)voidstop(SoundInstance p_120275_)voidstop(ResourceLocation p_120300_, SoundSource p_120301_)voidstopAll()voidtick(boolean p_120303_)private voidvoidupdateCategoryVolume(SoundSource p_120261_, float p_120262_)voidupdateSource(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
-