Package net.minecraft.client.sound
Class SoundManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloadListener<SoundManager.SoundList>
net.minecraft.client.sound.SoundManager
- All Implemented Interfaces:
ResourceReloadListener
@Environment(CLIENT) public class SoundManager extends SinglePreparationResourceReloadListener<SoundManager.SoundList>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoundManager.SoundList
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer
-
Field Summary
Fields Modifier and Type Field Description private static Gson
GSON
private static Logger
LOGGER
static Sound
MISSING_SOUND
private Map<Identifier,WeightedSoundSet>
sounds
private SoundSystem
soundSystem
private static TypeToken<Map<String,SoundEntry>>
TYPE
-
Constructor Summary
Constructors Constructor Description SoundManager(ResourceManager resourceManager, GameOptions gameOptions)
-
Method Summary
Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloadListener
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.resource.ResourceReloadListener
getName
-
Field Details
-
MISSING_SOUND
-
LOGGER
-
GSON
-
TYPE
-
sounds
-
soundSystem
-
-
Constructor Details
-
SoundManager
-
-
Method Details
-
prepare
- Specified by:
prepare
in classSinglePreparationResourceReloadListener<SoundManager.SoundList>
-
apply
protected void apply(SoundManager.SoundList soundList, ResourceManager resourceManager, Profiler profiler)- Specified by:
apply
in classSinglePreparationResourceReloadListener<SoundManager.SoundList>
-
isSoundResourcePresent
private static boolean isSoundResourcePresent(Sound sound, Identifier identifier, ResourceManager resourceManager) -
get
-
getKeys
-
playNextTick
-
play
-
play
-
updateListenerPosition
-
pauseAll
public void pauseAll() -
stopAll
public void stopAll() -
close
public void close() -
tick
public void tick(boolean bool) -
resumeAll
public void resumeAll() -
updateSoundVolume
-
stop
-
isPlaying
-
registerListener
-
unregisterListener
-
stopSounds
-
getDebugString
-