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 classSoundManager.SoundListNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer -
Field Summary
Fields Modifier and Type Field Description private static GsonGSONprivate static LoggerLOGGERstatic SoundMISSING_SOUNDprivate Map<Identifier,WeightedSoundSet>soundsprivate SoundSystemsoundSystemprivate 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
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
preparein classSinglePreparationResourceReloadListener<SoundManager.SoundList>
-
apply
protected void apply(SoundManager.SoundList soundList, ResourceManager resourceManager, Profiler profiler)- Specified by:
applyin 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
-