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 classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionstatic Sound
private static com.google.gson.Gson
(package private) static org.apache.logging.log4j.Logger
private Map<ResourceLocation,WeighedSoundEvents>
private static com.google.gson.reflect.TypeToken<Map<String,SoundEventRegistration>>
private SoundEngine
private static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener(SoundEventListener p_120375_)
protected void
apply(SoundManager.Preparations p_120377_, ResourceManager p_120378_, ProfilerFiller p_120379_)
void
destroy()
getSoundEvent(ResourceLocation p_120385_)
boolean
isActive(SoundInstance p_120404_)
void
pause()
void
play(SoundInstance p_120368_)
void
playDelayed(SoundInstance p_120370_, int p_120371_)
protected SoundManager.Preparations
prepare(ResourceManager p_120356_, ProfilerFiller p_120357_)
void
queueTickingSound(TickableSoundInstance p_120373_)
void
removeListener(SoundEventListener p_120402_)
void
resume()
void
stop()
void
stop(SoundInstance p_120400_)
void
stop(ResourceLocation p_120387_, SoundSource p_120388_)
void
tick(boolean p_120390_)
void
updateSource(Camera p_120362_)
void
updateSourceVolume(SoundSource p_120359_, float p_120360_)
(package private) static boolean
validateSoundResource(Sound p_120396_, ResourceLocation p_120397_, ResourceManager p_120398_)
Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
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.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
EMPTY_SOUND
-
LOGGER
static final org.apache.logging.log4j.Logger LOGGER -
SOUNDS_PATH
- See Also:
- Constant Field Values
-
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
-
-
Constructor Details
-
SoundManager
-
-
Method Details
-
prepare
- Specified by:
prepare
in classSimplePreparableReloadListener<SoundManager.Preparations>
-
apply
protected void apply(SoundManager.Preparations p_120377_, ResourceManager p_120378_, ProfilerFiller p_120379_)- Specified by:
apply
in classSimplePreparableReloadListener<SoundManager.Preparations>
-
validateSoundResource
static boolean validateSoundResource(Sound p_120396_, ResourceLocation p_120397_, ResourceManager p_120398_) -
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
-