public class SoundHandler extends java.lang.Object implements IResourceManagerReloadListener, ITickable
Modifier and Type | Field and Description |
---|---|
static Sound |
MISSING_SOUND |
Constructor and Description |
---|
SoundHandler(IResourceManager manager,
GameSettings gameSettingsIn) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ISoundEventListener listener) |
SoundEventAccessor |
getAccessor(ResourceLocation location) |
protected java.util.Map<java.lang.String,SoundList> |
getSoundMap(java.io.InputStream stream) |
boolean |
isSoundPlaying(ISound sound) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
pauseSounds() |
void |
playDelayedSound(ISound sound,
int delay) |
void |
playSound(ISound sound) |
void |
removeListener(ISoundEventListener listener) |
void |
resumeSounds() |
void |
setListener(EntityPlayer player,
float p_147691_2_) |
void |
setSoundLevel(SoundCategory category,
float volume) |
void |
stop(java.lang.String p_189520_1_,
SoundCategory p_189520_2_) |
void |
stopSound(ISound soundIn) |
void |
stopSounds() |
void |
unloadSounds() |
void |
update() |
public static final Sound MISSING_SOUND
public SoundHandler(IResourceManager manager, GameSettings gameSettingsIn)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
protected java.util.Map<java.lang.String,SoundList> getSoundMap(java.io.InputStream stream)
@Nullable public SoundEventAccessor getAccessor(ResourceLocation location)
public void playSound(ISound sound)
public void playDelayedSound(ISound sound, int delay)
public void setListener(EntityPlayer player, float p_147691_2_)
public void pauseSounds()
public void stopSounds()
public void unloadSounds()
public void resumeSounds()
public void setSoundLevel(SoundCategory category, float volume)
public void stopSound(ISound soundIn)
public boolean isSoundPlaying(ISound sound)
public void addListener(ISoundEventListener listener)
public void removeListener(ISoundEventListener listener)
public void stop(java.lang.String p_189520_1_, SoundCategory p_189520_2_)