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 classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Sound
private static final com.google.gson.Gson
private static final org.apache.logging.log4j.Logger
private final Map<ResourceLocation,
SoundEventAccessor> private final SoundEngine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ISoundEventListener p_184402_1_) protected void
apply
(SoundHandler.Loader p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_) void
destroy()
getSoundEvent
(ResourceLocation p_184398_1_) boolean
void
pause()
void
void
playDelayed
(ISound p_147681_1_, int p_147681_2_) protected SoundHandler.Loader
prepare
(IResourceManager p_212854_1_, IProfiler p_212854_2_) void
queueTickingSound
(ITickableSound p_229364_1_) void
removeListener
(ISoundEventListener p_184400_1_) void
resume()
void
stop()
void
void
stop
(ResourceLocation p_195478_1_, SoundCategory p_195478_2_) void
tick
(boolean p_215290_1_) void
updateSource
(ActiveRenderInfo p_215289_1_) void
updateSourceVolume
(SoundCategory p_184399_1_, float p_184399_2_) private static boolean
validateSoundResource
(Sound p_215292_0_, ResourceLocation p_215292_1_, IResourceManager p_215292_2_) Methods inherited from class net.minecraft.client.resources.ReloadListener
reload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
prepare
in classReloadListener<SoundHandler.Loader>
-
apply
protected void apply(SoundHandler.Loader p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_) - Specified by:
apply
in 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
-