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 SoundInstance
private final Minecraft
private int
The delay until the next song starts.private final RandomSource
private static final int
The delay before starting to play the next song. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isPlayingMusic
(Music pSelector) void
startPlaying
(Music pSelector) Starts playing the specified Music selector.void
void
stopPlaying
(Music pMusic) Stops playing the specified Music selector.void
tick()
-
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