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 float
private 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 TypeMethodDescriptionprivate boolean
fadePlaying
(float pVolume) boolean
isPlayingMusic
(Music pSelector) void
startPlaying
(MusicInfo pMusic) 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
-
currentGain
private float currentGain -
nextSongDelay
private int nextSongDelayThe delay until the next song starts.
-
-
Constructor Details
-
MusicManager
-
-
Method Details