public class SoundManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
SoundManager.SoundSystemStarterThread |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.Multimap<SoundCategory,java.lang.String> |
categorySounds |
private java.util.Map<ISound,java.lang.Integer> |
delayedSounds |
private java.util.Map<ISound,java.lang.String> |
invPlayingSounds |
private java.util.List<ISoundEventListener> |
listeners |
private boolean |
loaded |
private static org.apache.logging.log4j.Marker |
LOG_MARKER |
private static org.apache.logging.log4j.Logger |
LOGGER |
private GameSettings |
options |
private java.util.List<java.lang.String> |
pausedChannels |
private java.util.Map<java.lang.String,ISound> |
playingSounds |
private java.util.Map<java.lang.String,java.lang.Integer> |
playingSoundsStopTime |
private int |
playTime |
SoundHandler |
sndHandler |
private SoundManager.SoundSystemStarterThread |
sndSystem |
private java.util.List<ITickableSound> |
tickableSounds |
private static java.util.Set<ResourceLocation> |
UNABLE_TO_PLAY |
Constructor and Description |
---|
SoundManager(SoundHandler p_i45119_1_,
GameSettings p_i45119_2_) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ISoundEventListener listener) |
private float |
getClampedPitch(ISound soundIn) |
private float |
getClampedVolume(ISound soundIn) |
private static java.net.URL |
getURLForSoundResource(ResourceLocation p_148612_0_) |
private float |
getVolume(SoundCategory category) |
boolean |
isSoundPlaying(ISound sound) |
private void |
loadSoundSystem() |
void |
pauseAllSounds() |
void |
playDelayedSound(ISound sound,
int delay) |
void |
playSound(ISound p_sound) |
void |
reloadSoundSystem() |
void |
removeListener(ISoundEventListener listener) |
void |
resumeAllSounds() |
void |
setListener(Entity player,
float p_148615_2_) |
void |
setListener(EntityPlayer player,
float p_148615_2_) |
void |
setVolume(SoundCategory category,
float volume) |
void |
stop(java.lang.String p_189567_1_,
SoundCategory p_189567_2_) |
void |
stopAllSounds() |
void |
stopSound(ISound sound) |
void |
unloadSoundSystem() |
void |
updateAllSounds() |
private static final org.apache.logging.log4j.Marker LOG_MARKER
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.Set<ResourceLocation> UNABLE_TO_PLAY
public final SoundHandler sndHandler
private final GameSettings options
private SoundManager.SoundSystemStarterThread sndSystem
private boolean loaded
private int playTime
private final java.util.Map<java.lang.String,ISound> playingSounds
private final java.util.Map<ISound,java.lang.String> invPlayingSounds
private final com.google.common.collect.Multimap<SoundCategory,java.lang.String> categorySounds
private final java.util.List<ITickableSound> tickableSounds
private final java.util.Map<ISound,java.lang.Integer> delayedSounds
private final java.util.Map<java.lang.String,java.lang.Integer> playingSoundsStopTime
private final java.util.List<ISoundEventListener> listeners
private final java.util.List<java.lang.String> pausedChannels
public SoundManager(SoundHandler p_i45119_1_, GameSettings p_i45119_2_)
public void reloadSoundSystem()
private void loadSoundSystem()
private float getVolume(SoundCategory category)
public void setVolume(SoundCategory category, float volume)
public void unloadSoundSystem()
public void stopAllSounds()
public void addListener(ISoundEventListener listener)
public void removeListener(ISoundEventListener listener)
public void updateAllSounds()
public boolean isSoundPlaying(ISound sound)
public void stopSound(ISound sound)
public void playSound(ISound p_sound)
private float getClampedPitch(ISound soundIn)
private float getClampedVolume(ISound soundIn)
public void pauseAllSounds()
public void resumeAllSounds()
public void playDelayedSound(ISound sound, int delay)
private static java.net.URL getURLForSoundResource(ResourceLocation p_148612_0_)
public void setListener(EntityPlayer player, float p_148615_2_)
public void setListener(Entity player, float p_148615_2_)
public void stop(java.lang.String p_189567_1_, SoundCategory p_189567_2_)