Package net.minecraft.client.sounds
Class MusicManager
java.lang.Object
net.minecraft.client.sounds.MusicManager
The MusicManager class manages the playing of music in Minecraft.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SoundInstanceprivate final Minecraftprivate intThe delay until the next song starts.private final RandomSourceprivate static final intThe delay before starting to play the next song. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPlayingMusic(Music selector) voidstartPlaying(Music selector) Starts playing the specified Music selector.voidvoidstopPlaying(Music music) Stops playing the specified Music selector.voidtick()
-
Field Details
-
STARTING_DELAY
private static final int STARTING_DELAYThe delay before starting to play the next song.- See Also:
-
random
-
minecraft
-
currentMusic
-
nextSongDelay
private int nextSongDelayThe delay until the next song starts.
-
-
Constructor Details
-
MusicManager
-
-
Method Details