Package net.minecraft.client.sounds
Class SoundManager
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<SoundManager.Preparations>
net.minecraft.client.sounds.SoundManager
- All Implemented Interfaces:
 PreparableReloadListener
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Soundprivate static final com.google.gson.Gsonstatic final Soundstatic final WeighedSoundEventsstatic final ResourceLocation(package private) static final org.slf4j.Loggerprivate final Map<ResourceLocation,WeighedSoundEvents> private static final com.google.gson.reflect.TypeToken<Map<String,SoundEventRegistration>> private final Map<ResourceLocation,Resource> private final SoundEngineprivate static final String - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(SoundEventListener p_120375_) protected voidapply(SoundManager.Preparations p_120377_, ResourceManager p_120378_, ProfilerFiller p_120379_) voiddestroy()getSoundEvent(ResourceLocation p_120385_) booleanisActive(SoundInstance p_120404_) voidpause()voidplay(SoundInstance p_120368_) voidplayDelayed(SoundInstance p_120370_, int p_120371_) protected SoundManager.Preparationsprepare(ResourceManager p_120356_, ProfilerFiller p_120357_) voidqueueTickingSound(TickableSoundInstance p_120373_) voidreload()voidremoveListener(SoundEventListener p_120402_) voidresume()voidstop()voidstop(SoundInstance p_120400_) voidstop(ResourceLocation p_120387_, SoundSource p_120388_) voidtick(boolean p_120390_) voidupdateSource(Camera p_120362_) voidupdateSourceVolume(SoundSource p_120359_, float p_120360_) (package private) static booleanvalidateSoundResource(Sound p_250396_, ResourceLocation p_250879_, ResourceProvider p_248737_) Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName 
- 
Field Details
- 
EMPTY_SOUND
 - 
INTENTIONALLY_EMPTY_SOUND_LOCATION
 - 
INTENTIONALLY_EMPTY_SOUND_EVENT
 - 
INTENTIONALLY_EMPTY_SOUND
 - 
LOGGER
static final org.slf4j.Logger LOGGER - 
SOUNDS_PATH
- See Also:
 
 - 
GSON
private static final com.google.gson.Gson GSON - 
SOUND_EVENT_REGISTRATION_TYPE
private static final com.google.gson.reflect.TypeToken<Map<String,SoundEventRegistration>> SOUND_EVENT_REGISTRATION_TYPE - 
registry
 - 
soundEngine
 - 
soundCache
 
 - 
 - 
Constructor Details
- 
SoundManager
 
 - 
 - 
Method Details
- 
prepare
- Specified by:
 preparein classSimplePreparableReloadListener<SoundManager.Preparations>
 - 
apply
protected void apply(SoundManager.Preparations p_120377_, ResourceManager p_120378_, ProfilerFiller p_120379_) - Specified by:
 applyin classSimplePreparableReloadListener<SoundManager.Preparations>
 - 
getAvailableSoundDevices
 - 
validateSoundResource
static boolean validateSoundResource(Sound p_250396_, ResourceLocation p_250879_, ResourceProvider p_248737_)  - 
getSoundEvent
 - 
getAvailableSounds
 - 
queueTickingSound
 - 
play
 - 
playDelayed
 - 
updateSource
 - 
pause
public void pause() - 
stop
public void stop() - 
destroy
public void destroy() - 
tick
public void tick(boolean p_120390_)  - 
resume
public void resume() - 
updateSourceVolume
 - 
stop
 - 
isActive
 - 
addListener
 - 
removeListener
 - 
stop
 - 
getDebugString
 - 
reload
public void reload() 
 -