@Environment(value=CLIENT) public class MusicTracker extends Object
Modifier and Type | Field and Description |
---|---|
private MinecraftClient |
client |
private SoundInstance |
current |
private Random |
random |
private int |
timeUntilNextSong |
Constructor and Description |
---|
MusicTracker(MinecraftClient client) |
Modifier and Type | Method and Description |
---|---|
boolean |
isPlayingType(MusicSound type) |
void |
play(MusicSound type) |
void |
stop() |
void |
tick() |
private final Random random
private final MinecraftClient client
@Nullable private SoundInstance current
private int timeUntilNextSong
public MusicTracker(MinecraftClient client)
public void tick()
public void play(MusicSound type)
public void stop()
public boolean isPlayingType(MusicSound type)