Package net.minecraft.sound
Class MusicSound
java.lang.Object
net.minecraft.sound.MusicSound
public class MusicSound extends Object
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<MusicSound>CODECprivate intmaxDelayprivate intminDelayprivate booleanreplaceCurrentMusicprivate SoundEventsound -
Constructor Summary
Constructors Constructor Description MusicSound(SoundEvent sound, int minDelay, int maxDelay, boolean replaceCurrentMusic) -
Method Summary
Modifier and Type Method Description intgetMaxDelay()intgetMinDelay()SoundEventgetSound()booleanshouldReplaceCurrentMusic()
-
Field Details
-
CODEC
-
sound
-
minDelay
private final int minDelay -
maxDelay
private final int maxDelay -
replaceCurrentMusic
private final boolean replaceCurrentMusic
-
-
Constructor Details
-
MusicSound
-
-
Method Details
-
getSound
-
getMinDelay
@Environment(CLIENT) public int getMinDelay() -
getMaxDelay
@Environment(CLIENT) public int getMaxDelay() -
shouldReplaceCurrentMusic
@Environment(CLIENT) public boolean shouldReplaceCurrentMusic()
-