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 SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenerPreparableReloadListener.PreparationBarrier
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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.SimplePreparableReloadListenerreloadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenergetName
- 
Field Details- 
EMPTY_SOUND
- 
INTENTIONALLY_EMPTY_SOUND_LOCATION
- 
INTENTIONALLY_EMPTY_SOUND_EVENT
- 
INTENTIONALLY_EMPTY_SOUND
- 
LOGGERstatic final org.slf4j.Logger LOGGER
- 
SOUNDS_PATH- See Also:
 
- 
GSONprivate static final com.google.gson.Gson GSON
- 
SOUND_EVENT_REGISTRATION_TYPEprivate 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 class- SimplePreparableReloadListener<SoundManager.Preparations>
 
- 
applyprotected void apply(SoundManager.Preparations p_120377_, ResourceManager p_120378_, ProfilerFiller p_120379_) - Specified by:
- applyin class- SimplePreparableReloadListener<SoundManager.Preparations>
 
- 
getAvailableSoundDevices
- 
validateSoundResourcestatic boolean validateSoundResource(Sound p_250396_, ResourceLocation p_250879_, ResourceProvider p_248737_) 
- 
getSoundEvent
- 
getAvailableSounds
- 
queueTickingSound
- 
play
- 
playDelayed
- 
updateSource
- 
pausepublic void pause()
- 
stoppublic void stop()
- 
destroypublic void destroy()
- 
tickpublic void tick(boolean p_120390_) 
- 
resumepublic void resume()
- 
updateSourceVolume
- 
stop
- 
isActive
- 
addListener
- 
removeListener
- 
stop
- 
getDebugString
- 
reloadpublic void reload()
 
-