public class MusicSound extends Object
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<MusicSound> |
CODEC |
private int |
maxDelay |
private int |
minDelay |
private boolean |
replaceCurrentMusic |
private SoundEvent |
sound |
Constructor and Description |
---|
MusicSound(SoundEvent sound,
int minDelay,
int maxDelay,
boolean replaceCurrentMusic) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxDelay() |
int |
getMinDelay() |
SoundEvent |
getSound() |
boolean |
shouldReplaceCurrentMusic() |
public static final com.mojang.serialization.Codec<MusicSound> CODEC
private final SoundEvent sound
private final int minDelay
private final int maxDelay
private final boolean replaceCurrentMusic
public MusicSound(SoundEvent sound, int minDelay, int maxDelay, boolean replaceCurrentMusic)
@Environment(value=CLIENT) public SoundEvent getSound()
@Environment(value=CLIENT) public int getMinDelay()
@Environment(value=CLIENT) public int getMaxDelay()
@Environment(value=CLIENT) public boolean shouldReplaceCurrentMusic()