Package net.minestom.server.world.biome
Record Class BiomeEffects
java.lang.Object
java.lang.Record
net.minestom.server.world.biome.BiomeEffects
public record BiomeEffects(@NotNull RGBLike fogColor, @NotNull RGBLike skyColor, @NotNull RGBLike waterColor, @NotNull RGBLike waterFogColor, @Nullable RGBLike foliageColor, @Nullable RGBLike grassColor, @NotNull 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(@NotNull RGBLike fogColor, @NotNull RGBLike skyColor, @NotNull RGBLike waterColor, @NotNull RGBLike waterFogColor, @Nullable RGBLike foliageColor, @Nullable RGBLike grassColor, @NotNull 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.@Nullable SoundEventReturns 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.@NotNull RGBLikefogColor()Returns the value of thefogColorrecord component.@Nullable RGBLikeReturns the value of thefoliageColorrecord component.@Nullable RGBLikeReturns the value of thegrassColorrecord component.@NotNull BiomeEffects.GrassColorModifierReturns the value of thegrassColorModifierrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themoodSoundrecord component.@Nullable List<BiomeEffects.WeightedMusic> music()Returns the value of themusicrecord component.@Nullable FloatReturns the value of themusicVolumerecord component.@NotNull RGBLikeskyColor()Returns the value of theskyColorrecord component.final StringtoString()Returns a string representation of this record class.@NotNull RGBLikeReturns the value of thewaterColorrecord component.@NotNull RGBLikeReturns the value of thewaterFogColorrecord component.
-
Field Details
-
PLAINS_EFFECTS
-
CODEC
-
-
Constructor Details
-
BiomeEffects
public BiomeEffects(@NotNull @NotNull RGBLike fogColor, @NotNull @NotNull RGBLike skyColor, @NotNull @NotNull RGBLike waterColor, @NotNull @NotNull RGBLike waterFogColor, @Nullable @Nullable RGBLike foliageColor, @Nullable @Nullable RGBLike grassColor, @NotNull @NotNull 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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thefoliageColorrecord component.- Returns:
- the value of the
foliageColorrecord component
-
grassColor
Returns the value of thegrassColorrecord component.- Returns:
- the value of the
grassColorrecord component
-
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
Returns the value of themusicVolumerecord component.- Returns:
- the value of the
musicVolumerecord component
-