Record Class BiomeEffects
java.lang.Object
java.lang.Record
net.minestom.server.world.biome.BiomeEffects
public record BiomeEffects(RGBLike fogColor, RGBLike skyColor, RGBLike waterColor, RGBLike waterFogColor, @Nullable RGBLike foliageColor, @Nullable RGBLike grassColor, BiomeEffects.GrassColorModifier grassColorModifier, BiomeEffects.Particle biomeParticle, @Nullable SoundEvent ambientSound, BiomeEffects.MoodSound moodSound, BiomeEffects.AdditionsSound additionsSound, @Nullable List<BiomeEffects.WeightedMusic> music, @Nullable Float musicVolume)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final classstatic enumstatic final recordstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBiomeEffects(RGBLike fogColor, RGBLike skyColor, RGBLike waterColor, RGBLike waterFogColor, @Nullable RGBLike foliageColor, @Nullable RGBLike grassColor, BiomeEffects.GrassColorModifier grassColorModifier, BiomeEffects.Particle biomeParticle, @Nullable SoundEvent ambientSound, BiomeEffects.MoodSound moodSound, BiomeEffects.AdditionsSound additionsSound, @Nullable List<BiomeEffects.WeightedMusic> music, @Nullable Float musicVolume) Creates an instance of aBiomeEffectsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionsSoundrecord component.Returns the value of theambientSoundrecord component.Returns the value of thebiomeParticlerecord component.static BiomeEffects.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.fogColor()Returns the value of thefogColorrecord component.Returns the value of thefoliageColorrecord component.Returns the value of thegrassColorrecord component.Returns the value of thegrassColorModifierrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themoodSoundrecord component.music()Returns the value of themusicrecord component.Returns the value of themusicVolumerecord component.skyColor()Returns the value of theskyColorrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewaterColorrecord component.Returns the value of thewaterFogColorrecord component.
-
Field Details
-
PLAINS_EFFECTS
-
CODEC
-
-
Constructor Details
-
BiomeEffects
public BiomeEffects(RGBLike fogColor, RGBLike skyColor, RGBLike waterColor, RGBLike waterFogColor, @Nullable @Nullable RGBLike foliageColor, @Nullable @Nullable RGBLike grassColor, BiomeEffects.GrassColorModifier grassColorModifier, @Nullable BiomeEffects.Particle biomeParticle, @Nullable @Nullable SoundEvent ambientSound, @Nullable BiomeEffects.MoodSound moodSound, @Nullable BiomeEffects.AdditionsSound additionsSound, @Nullable @Nullable List<BiomeEffects.WeightedMusic> music, @Nullable @Nullable Float musicVolume) Creates an instance of aBiomeEffectsrecord class.- Parameters:
fogColor- the value for thefogColorrecord componentskyColor- the value for theskyColorrecord componentwaterColor- the value for thewaterColorrecord componentwaterFogColor- the value for thewaterFogColorrecord componentfoliageColor- the value for thefoliageColorrecord componentgrassColor- the value for thegrassColorrecord componentgrassColorModifier- the value for thegrassColorModifierrecord componentbiomeParticle- the value for thebiomeParticlerecord componentambientSound- the value for theambientSoundrecord componentmoodSound- the value for themoodSoundrecord componentadditionsSound- the value for theadditionsSoundrecord componentmusic- the value for themusicrecord componentmusicVolume- the value for themusicVolumerecord component
-
-
Method Details
-
builder
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
fogColor
Returns the value of thefogColorrecord component.- Returns:
- the value of the
fogColorrecord component
-
skyColor
Returns the value of theskyColorrecord component.- Returns:
- the value of the
skyColorrecord component
-
waterColor
Returns the value of thewaterColorrecord component.- Returns:
- the value of the
waterColorrecord component
-
waterFogColor
Returns the value of thewaterFogColorrecord component.- Returns:
- the value of the
waterFogColorrecord component
-
foliageColor
-
grassColor
-
grassColorModifier
Returns the value of thegrassColorModifierrecord component.- Returns:
- the value of the
grassColorModifierrecord component
-
biomeParticle
Returns the value of thebiomeParticlerecord component.- Returns:
- the value of the
biomeParticlerecord component
-
ambientSound
Returns the value of theambientSoundrecord component.- Returns:
- the value of the
ambientSoundrecord component
-
moodSound
Returns the value of themoodSoundrecord component.- Returns:
- the value of the
moodSoundrecord component
-
additionsSound
Returns the value of theadditionsSoundrecord component.- Returns:
- the value of the
additionsSoundrecord component
-
music
Returns the value of themusicrecord component.- Returns:
- the value of the
musicrecord component
-
musicVolume
-