Package net.minecraft.client.audio
Class BackgroundMusicSelector
- java.lang.Object
-
- net.minecraft.client.audio.BackgroundMusicSelector
-
public class BackgroundMusicSelector extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<BackgroundMusicSelector>
CODEC
private SoundEvent
event
private int
maxDelay
private int
minDelay
private boolean
replaceCurrentMusic
-
Constructor Summary
Constructors Constructor Description BackgroundMusicSelector(SoundEvent p_i231428_1_, int p_i231428_2_, int p_i231428_3_, boolean p_i231428_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoundEvent
getEvent()
int
getMaxDelay()
int
getMinDelay()
boolean
replaceCurrentMusic()
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<BackgroundMusicSelector> CODEC
-
event
private final SoundEvent event
-
minDelay
private final int minDelay
-
maxDelay
private final int maxDelay
-
replaceCurrentMusic
private final boolean replaceCurrentMusic
-
-
Constructor Detail
-
BackgroundMusicSelector
public BackgroundMusicSelector(SoundEvent p_i231428_1_, int p_i231428_2_, int p_i231428_3_, boolean p_i231428_4_)
-
-
Method Detail
-
getEvent
public SoundEvent getEvent()
-
getMinDelay
public int getMinDelay()
-
getMaxDelay
public int getMaxDelay()
-
replaceCurrentMusic
public boolean replaceCurrentMusic()
-
-