net.minecraft.client.sound

public class SoundManager

extends SinglePreparationResourceReloader<SoundManager$SoundList>

All mapped superinterfaces:

ResourceReloader

net.minecraft.client.sounds.SoundManager
net.minecraft.class_1144
net.minecraft.client.sound.SoundManager

Field summary

Modifier and TypeField
public static final Identifier
EMPTY_SOUND_LOCATION
field_52173
EMPTY_ID
public static final Sound
EMPTY_SOUND
field_5592
MISSING_SOUND
public static final Identifier
INTENTIONALLY_EMPTY_SOUND_LOCATION
field_42934
INTENTIONALLY_EMPTY_ID
public static final WeightedSoundSet
INTENTIONALLY_EMPTY_SOUND_EVENT
field_42935
INTENTIONALLY_EMPTY_SOUND_SET
public static final Sound
INTENTIONALLY_EMPTY_SOUND
field_42936
INTENTIONALLY_EMPTY_SOUND
private static final org.slf4j.Logger
LOGGER
field_5593
LOGGER
private static final String
SOUNDS_PATH
field_33026
SOUNDS_JSON
private static final com.google.gson.Gson
GSON
field_5594
GSON
private static final com.google.gson.reflect.TypeToken<Map<String, SoundEntry>>
SOUND_EVENT_REGISTRATION_TYPE
field_5591
TYPE
private final Map<Identifier, WeightedSoundSet>
registry
field_5588
sounds
private final SoundSystem
soundEngine
field_5590
soundSystem
private final Map<Identifier, Resource>
soundCache
field_40576
soundResources

Constructor summary

ModifierConstructor
public (GameOptions gameOptions)

Method summary

Modifier and TypeMethod
protected SoundManager$SoundList
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
protected void
apply(SoundManager$Preparations preparations, ResourceManager manager, ProfilerFiller profiler)
method_18182(class_1144$class_4009 arg0, class_3300 arg1, class_3695 arg2)
apply(SoundManager$SoundList arg0, ResourceManager arg1, Profiler arg2)
public List<String>
getAvailableSoundDevices()
method_38565()
getSoundDevices()
public SoundListenerTransform
getListenerTransform()
method_55593()
getListenerTransform()
private static boolean
validateSoundResource(Sound sound, Identifier eventLocation, ResourceProvider resourceProvider)
method_4868(class_1111 arg0, class_2960 arg1, class_5912 arg2)
isSoundResourcePresent(Sound sound, Identifier id, ResourceFactory resourceFactory)
public WeightedSoundSet
getSoundEvent(Identifier location)
method_4869(class_2960 arg0)
get(Identifier id)
public Collection<Identifier>
getAvailableSounds()
method_4864()
getKeys()
public void
queueTickingSound(TickableSoundInstance instance)
method_22140(class_1117 arg0)
playNextTick(TickableSoundInstance sound)
public SoundSystem$PlayResult
play(SoundInstance instance)
method_4873(class_1113 arg0)
play(SoundInstance sound)
public void
playDelayed(SoundInstance instance, int delay)
method_4872(class_1113 arg0, int arg1)
play(SoundInstance sound, int delay)
public void
updateSource(Camera camera)
method_4876(class_4184 arg0)
updateListenerPosition(Camera camera)
public void
pauseAllExcept(SoundSource... ignoredSources)
method_71939(class_3419... arg0)
pauseAllExcept(SoundCategory... categories)
public void
stop()
method_4881()
stopAll()
public void
destroy()
method_4882()
close()
public void
emergencyShutdown()
method_54649()
stopAbruptly()
public void
tick(boolean paused)
method_18670(boolean arg0)
tick(boolean paused)
public void
resume()
method_4880()
resumeAll()
public void
refreshCategoryVolume(SoundSource category)
method_76569(class_3419 arg0)
refreshSoundVolumes(SoundCategory category)
public void
stop(SoundInstance soundInstance)
method_4870(class_1113 arg0)
stop(SoundInstance sound)
public void
updateCategoryVolume(SoundSource source, float gain)
method_76570(class_3419 arg0, float arg1)
setVolume(SoundCategory category, float volume)
public boolean
isActive(SoundInstance instance)
method_4877(class_1113 arg0)
isPlaying(SoundInstance sound)
public void
addListener(SoundEventListener listener)
method_4878(class_1145 arg0)
registerListener(SoundInstanceListener listener)
public void
removeListener(SoundEventListener listener)
method_4866(class_1145 arg0)
unregisterListener(SoundInstanceListener listener)
public void
stop(Identifier sound, SoundSource source)
method_4875(class_2960 arg0, class_3419 arg1)
stopSounds(Identifier id, SoundCategory soundCategory)
public String
getChannelDebugString()
method_20305()
getDebugString()
public void
getSoundCacheDebugStats(SoundBufferLibrary$DebugOutput output)
method_1_2595(class_4237$class_1_387 arg0)
forLoadedSounds(SoundLoader$StatisticsConsumer callback)
public void
reload()
method_38566()
reloadSounds()
protected void
apply(Object preparations, ResourceManager manager, ProfilerFiller profiler)
method_18788(Object arg0, class_3300 arg1, class_3695 arg2)
apply(Object arg0, ResourceManager arg1, Profiler arg2)
protected Object
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)