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 Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage -
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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.ReloadListener
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
Field Details
-
EMPTY_SOUND
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
SOUND_EVENT_REGISTRATION_TYPE
-
registry
-
soundEngine
-
-
Constructor Details
-
SoundHandler
-
-
Method Details
-
prepare
- Specified by:
preparein classReloadListener<SoundHandler.Loader>
-
apply
protected void apply(SoundHandler.Loader p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_) - Specified by:
applyin classReloadListener<SoundHandler.Loader>
-
validateSoundResource
private static boolean validateSoundResource(Sound p_215292_0_, ResourceLocation p_215292_1_, IResourceManager p_215292_2_) -
getSoundEvent
-
getAvailableSounds
-
queueTickingSound
-
play
-
playDelayed
-
updateSource
-
pause
public void pause() -
stop
public void stop() -
destroy
public void destroy() -
tick
public void tick(boolean p_215290_1_) -
resume
public void resume() -
updateSourceVolume
-
stop
-
isActive
-
addListener
-
removeListener
-
stop
-
getResourceType
-
getDebugString
-