Package net.minecraft.world.biome
Class BiomeAmbience
- java.lang.Object
-
- net.minecraft.world.biome.BiomeAmbience
-
public class BiomeAmbience extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BiomeAmbience.Builder
static class
BiomeAmbience.GrassColorModifier
-
Field Summary
Fields Modifier and Type Field Description private java.util.Optional<SoundAdditionsAmbience>
ambientAdditionsSettings
private java.util.Optional<SoundEvent>
ambientLoopSoundEvent
private java.util.Optional<MoodSoundAmbience>
ambientMoodSettings
private java.util.Optional<ParticleEffectAmbience>
ambientParticleSettings
private java.util.Optional<BackgroundMusicSelector>
backgroundMusic
static com.mojang.serialization.Codec<BiomeAmbience>
CODEC
private int
fogColor
private java.util.Optional<java.lang.Integer>
foliageColorOverride
private BiomeAmbience.GrassColorModifier
grassColorModifier
private java.util.Optional<java.lang.Integer>
grassColorOverride
private int
skyColor
private int
waterColor
private int
waterFogColor
-
Constructor Summary
Constructors Modifier Constructor Description private
BiomeAmbience(int p_i241938_1_, int p_i241938_2_, int p_i241938_3_, int p_i241938_4_, java.util.Optional<java.lang.Integer> p_i241938_5_, java.util.Optional<java.lang.Integer> p_i241938_6_, BiomeAmbience.GrassColorModifier p_i241938_7_, java.util.Optional<ParticleEffectAmbience> p_i241938_8_, java.util.Optional<SoundEvent> p_i241938_9_, java.util.Optional<MoodSoundAmbience> p_i241938_10_, java.util.Optional<SoundAdditionsAmbience> p_i241938_11_, java.util.Optional<BackgroundMusicSelector> p_i241938_12_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<SoundAdditionsAmbience>
getAmbientAdditionsSettings()
java.util.Optional<SoundEvent>
getAmbientLoopSoundEvent()
java.util.Optional<MoodSoundAmbience>
getAmbientMoodSettings()
java.util.Optional<ParticleEffectAmbience>
getAmbientParticleSettings()
java.util.Optional<BackgroundMusicSelector>
getBackgroundMusic()
int
getFogColor()
java.util.Optional<java.lang.Integer>
getFoliageColorOverride()
BiomeAmbience.GrassColorModifier
getGrassColorModifier()
java.util.Optional<java.lang.Integer>
getGrassColorOverride()
int
getSkyColor()
int
getWaterColor()
int
getWaterFogColor()
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<BiomeAmbience> CODEC
-
fogColor
private final int fogColor
-
waterColor
private final int waterColor
-
waterFogColor
private final int waterFogColor
-
skyColor
private final int skyColor
-
foliageColorOverride
private final java.util.Optional<java.lang.Integer> foliageColorOverride
-
grassColorOverride
private final java.util.Optional<java.lang.Integer> grassColorOverride
-
grassColorModifier
private final BiomeAmbience.GrassColorModifier grassColorModifier
-
ambientParticleSettings
private final java.util.Optional<ParticleEffectAmbience> ambientParticleSettings
-
ambientLoopSoundEvent
private final java.util.Optional<SoundEvent> ambientLoopSoundEvent
-
ambientMoodSettings
private final java.util.Optional<MoodSoundAmbience> ambientMoodSettings
-
ambientAdditionsSettings
private final java.util.Optional<SoundAdditionsAmbience> ambientAdditionsSettings
-
backgroundMusic
private final java.util.Optional<BackgroundMusicSelector> backgroundMusic
-
-
Constructor Detail
-
BiomeAmbience
private BiomeAmbience(int p_i241938_1_, int p_i241938_2_, int p_i241938_3_, int p_i241938_4_, java.util.Optional<java.lang.Integer> p_i241938_5_, java.util.Optional<java.lang.Integer> p_i241938_6_, BiomeAmbience.GrassColorModifier p_i241938_7_, java.util.Optional<ParticleEffectAmbience> p_i241938_8_, java.util.Optional<SoundEvent> p_i241938_9_, java.util.Optional<MoodSoundAmbience> p_i241938_10_, java.util.Optional<SoundAdditionsAmbience> p_i241938_11_, java.util.Optional<BackgroundMusicSelector> p_i241938_12_)
-
-
Method Detail
-
getFogColor
public int getFogColor()
-
getWaterColor
public int getWaterColor()
-
getWaterFogColor
public int getWaterFogColor()
-
getSkyColor
public int getSkyColor()
-
getFoliageColorOverride
public java.util.Optional<java.lang.Integer> getFoliageColorOverride()
-
getGrassColorOverride
public java.util.Optional<java.lang.Integer> getGrassColorOverride()
-
getGrassColorModifier
public BiomeAmbience.GrassColorModifier getGrassColorModifier()
-
getAmbientParticleSettings
public java.util.Optional<ParticleEffectAmbience> getAmbientParticleSettings()
-
getAmbientLoopSoundEvent
public java.util.Optional<SoundEvent> getAmbientLoopSoundEvent()
-
getAmbientMoodSettings
public java.util.Optional<MoodSoundAmbience> getAmbientMoodSettings()
-
getAmbientAdditionsSettings
public java.util.Optional<SoundAdditionsAmbience> getAmbientAdditionsSettings()
-
getBackgroundMusic
public java.util.Optional<BackgroundMusicSelector> getBackgroundMusic()
-
-