Package net.minecraft.client.audio
Class SoundHandler
java.lang.Object
net.minecraft.client.resources.ReloadListener<SoundHandler.Loader>
net.minecraft.client.audio.SoundHandler
- All Implemented Interfaces:
- IFutureReloadListener
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListenerIFutureReloadListener.IStage
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Soundprivate static final com.google.gson.Gsonprivate static final org.apache.logging.log4j.Loggerprivate final Map<ResourceLocation,SoundEventAccessor> private final SoundEngine
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddListener(ISoundEventListener p_184402_1_) protected voidapply(SoundHandler.Loader p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_) voiddestroy()getSoundEvent(ResourceLocation p_184398_1_) booleanvoidpause()voidvoidplayDelayed(ISound p_147681_1_, int p_147681_2_) protected SoundHandler.Loaderprepare(IResourceManager p_212854_1_, IProfiler p_212854_2_) voidqueueTickingSound(ITickableSound p_229364_1_) voidremoveListener(ISoundEventListener p_184400_1_) voidresume()voidstop()voidvoidstop(ResourceLocation p_195478_1_, SoundCategory p_195478_2_) voidtick(boolean p_215290_1_) voidupdateSource(ActiveRenderInfo p_215289_1_) voidupdateSourceVolume(SoundCategory p_184399_1_, float p_184399_2_) private static booleanvalidateSoundResource(Sound p_215292_0_, ResourceLocation p_215292_1_, IResourceManager p_215292_2_) Methods inherited from class net.minecraft.client.resources.ReloadListenerreloadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resources.IFutureReloadListenergetName
- 
Field Details- 
EMPTY_SOUND
- 
LOGGERprivate static final org.apache.logging.log4j.Logger LOGGER
- 
GSONprivate static final com.google.gson.Gson GSON
- 
SOUND_EVENT_REGISTRATION_TYPE
- 
registry
- 
soundEngine
 
- 
- 
Constructor Details- 
SoundHandler
 
- 
- 
Method Details- 
prepare- Specified by:
- preparein class- ReloadListener<SoundHandler.Loader>
 
- 
applyprotected void apply(SoundHandler.Loader p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_) - Specified by:
- applyin class- ReloadListener<SoundHandler.Loader>
 
- 
validateSoundResourceprivate static boolean validateSoundResource(Sound p_215292_0_, ResourceLocation p_215292_1_, IResourceManager p_215292_2_) 
- 
getSoundEvent
- 
getAvailableSounds
- 
queueTickingSound
- 
play
- 
playDelayed
- 
updateSource
- 
pausepublic void pause()
- 
stoppublic void stop()
- 
destroypublic void destroy()
- 
tickpublic void tick(boolean p_215290_1_) 
- 
resumepublic void resume()
- 
updateSourceVolume
- 
stop
- 
isActive
- 
addListener
- 
removeListener
- 
stop
- 
getResourceType
- 
getDebugString
 
-