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 record
static final class
static enum
static final record
static final record
static 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 aBiomeEffects
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionsSound
record component.@Nullable SoundEvent
Returns the value of theambientSound
record component.Returns the value of thebiomeParticle
record component.static BiomeEffects.Builder
builder()
final boolean
Indicates whether some other object is "equal to" this one.@NotNull RGBLike
fogColor()
Returns the value of thefogColor
record component.@Nullable RGBLike
Returns the value of thefoliageColor
record component.@Nullable RGBLike
Returns the value of thegrassColor
record component.@NotNull BiomeEffects.GrassColorModifier
Returns the value of thegrassColorModifier
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of themoodSound
record component.@Nullable List
<BiomeEffects.WeightedMusic> music()
Returns the value of themusic
record component.@Nullable Float
Returns the value of themusicVolume
record component.@NotNull RGBLike
skyColor()
Returns the value of theskyColor
record component.final String
toString()
Returns a string representation of this record class.@NotNull RGBLike
Returns the value of thewaterColor
record component.@NotNull RGBLike
Returns the value of thewaterFogColor
record component.
-
Field Details
-
NBT_TYPE
-
-
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 aBiomeEffects
record class.- Parameters:
fogColor
- the value for thefogColor
record componentskyColor
- the value for theskyColor
record componentwaterColor
- the value for thewaterColor
record componentwaterFogColor
- the value for thewaterFogColor
record componentfoliageColor
- the value for thefoliageColor
record componentgrassColor
- the value for thegrassColor
record componentgrassColorModifier
- the value for thegrassColorModifier
record componentbiomeParticle
- the value for thebiomeParticle
record componentambientSound
- the value for theambientSound
record componentmoodSound
- the value for themoodSound
record componentadditionsSound
- the value for theadditionsSound
record componentmusic
- the value for themusic
record componentmusicVolume
- the value for themusicVolume
record 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 thefogColor
record component.- Returns:
- the value of the
fogColor
record component
-
skyColor
Returns the value of theskyColor
record component.- Returns:
- the value of the
skyColor
record component
-
waterColor
Returns the value of thewaterColor
record component.- Returns:
- the value of the
waterColor
record component
-
waterFogColor
Returns the value of thewaterFogColor
record component.- Returns:
- the value of the
waterFogColor
record component
-
foliageColor
Returns the value of thefoliageColor
record component.- Returns:
- the value of the
foliageColor
record component
-
grassColor
Returns the value of thegrassColor
record component.- Returns:
- the value of the
grassColor
record component
-
grassColorModifier
Returns the value of thegrassColorModifier
record component.- Returns:
- the value of the
grassColorModifier
record component
-
biomeParticle
Returns the value of thebiomeParticle
record component.- Returns:
- the value of the
biomeParticle
record component
-
ambientSound
Returns the value of theambientSound
record component.- Returns:
- the value of the
ambientSound
record component
-
moodSound
Returns the value of themoodSound
record component.- Returns:
- the value of the
moodSound
record component
-
additionsSound
Returns the value of theadditionsSound
record component.- Returns:
- the value of the
additionsSound
record component
-
music
Returns the value of themusic
record component.- Returns:
- the value of the
music
record component
-
musicVolume
Returns the value of themusicVolume
record component.- Returns:
- the value of the
musicVolume
record component
-