public class BiomeEffects extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BiomeEffects.Builder |
static class |
BiomeEffects.GrassColorModifier |
Modifier and Type | Field and Description |
---|---|
private Optional<BiomeAdditionsSound> |
additionsSound |
static com.mojang.serialization.Codec<BiomeEffects> |
CODEC |
private int |
fogColor |
private Optional<Integer> |
foliageColor |
private Optional<Integer> |
grassColor |
private BiomeEffects.GrassColorModifier |
grassColorModifier |
private Optional<SoundEvent> |
loopSound |
private Optional<BiomeMoodSound> |
moodSound |
private Optional<MusicSound> |
music |
private Optional<BiomeParticleConfig> |
particleConfig |
private int |
skyColor |
private int |
waterColor |
private int |
waterFogColor |
Modifier | Constructor and Description |
---|---|
private |
BiomeEffects(int fogColor,
int waterColor,
int waterFogColor,
int skyColor,
Optional<Integer> foliageColor,
Optional<Integer> grassColor,
BiomeEffects.GrassColorModifier grassColorModifier,
Optional<BiomeParticleConfig> particleConfig,
Optional<SoundEvent> loopSound,
Optional<BiomeMoodSound> moodSound,
Optional<BiomeAdditionsSound> additionsSound,
Optional<MusicSound> music) |
Modifier and Type | Method and Description |
---|---|
Optional<BiomeAdditionsSound> |
getAdditionsSound()
Returns the additions sound.
|
int |
getFogColor() |
Optional<Integer> |
getFoliageColor() |
Optional<Integer> |
getGrassColor() |
BiomeEffects.GrassColorModifier |
getGrassColorModifier() |
Optional<SoundEvent> |
getLoopSound()
Returns the loop sound.
|
Optional<BiomeMoodSound> |
getMoodSound()
Returns the mood sound.
|
Optional<MusicSound> |
getMusic() |
Optional<BiomeParticleConfig> |
getParticleConfig() |
int |
getSkyColor() |
int |
getWaterColor() |
int |
getWaterFogColor() |
public static final com.mojang.serialization.Codec<BiomeEffects> CODEC
private final int fogColor
private final int waterColor
private final int waterFogColor
private final int skyColor
private final BiomeEffects.GrassColorModifier grassColorModifier
private final Optional<BiomeParticleConfig> particleConfig
private final Optional<SoundEvent> loopSound
private final Optional<BiomeMoodSound> moodSound
private final Optional<BiomeAdditionsSound> additionsSound
private final Optional<MusicSound> music
private BiomeEffects(int fogColor, int waterColor, int waterFogColor, int skyColor, Optional<Integer> foliageColor, Optional<Integer> grassColor, BiomeEffects.GrassColorModifier grassColorModifier, Optional<BiomeParticleConfig> particleConfig, Optional<SoundEvent> loopSound, Optional<BiomeMoodSound> moodSound, Optional<BiomeAdditionsSound> additionsSound, Optional<MusicSound> music)
@Environment(value=CLIENT) public int getFogColor()
@Environment(value=CLIENT) public int getWaterColor()
@Environment(value=CLIENT) public int getWaterFogColor()
@Environment(value=CLIENT) public int getSkyColor()
@Environment(value=CLIENT) public BiomeEffects.GrassColorModifier getGrassColorModifier()
@Environment(value=CLIENT) public Optional<BiomeParticleConfig> getParticleConfig()
@Environment(value=CLIENT) public Optional<SoundEvent> getLoopSound()
A loop sound is played continuously as an ambient sound whenever the player is in the biome with this effect.
@Environment(value=CLIENT) public Optional<BiomeMoodSound> getMoodSound()
A mood sound is played once every 6000 to 17999 ticks as an ambient sound whenever the player is in the biome with this effect and near a position that has 0 sky light and less than 7 combined light.
Overworld biomes have the regular cave sound as their mood sound, while three nether biomes in 20w10a have their dedicated mood sounds.
@Environment(value=CLIENT) public Optional<BiomeAdditionsSound> getAdditionsSound()
An additions sound is played at 1.1% chance every tick as an ambient sound whenever the player is in the biome with this effect.
@Environment(value=CLIENT) public Optional<MusicSound> getMusic()