@Environment(value=CLIENT) public class BiomeEffectSoundPlayer extends Object implements ClientPlayerTickable
Modifier and Type | Class and Description |
---|---|
static class |
BiomeEffectSoundPlayer.MusicLoop |
Modifier and Type | Field and Description |
---|---|
private Biome |
activeBiome |
private Optional<BiomeAdditionsSound> |
additionsSound |
private BiomeAccess |
biomeAccess |
private float |
moodPercentage |
private Optional<BiomeMoodSound> |
moodSound |
private ClientPlayerEntity |
player |
private Random |
random |
private it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<Biome,BiomeEffectSoundPlayer.MusicLoop> |
soundLoops |
private SoundManager |
soundManager |
Constructor and Description |
---|
BiomeEffectSoundPlayer(ClientPlayerEntity player,
SoundManager soundManager,
BiomeAccess biomeAccess) |
private final ClientPlayerEntity player
private final SoundManager soundManager
private final BiomeAccess biomeAccess
private final Random random
private it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<Biome,BiomeEffectSoundPlayer.MusicLoop> soundLoops
private Optional<BiomeMoodSound> moodSound
private Optional<BiomeAdditionsSound> additionsSound
private float moodPercentage
private Biome activeBiome
public BiomeEffectSoundPlayer(ClientPlayerEntity player, SoundManager soundManager, BiomeAccess biomeAccess)
public float getMoodPercentage()
public void tick()
tick
in interface ClientPlayerTickable