Record Class BiomeEffects

java.lang.Object
java.lang.Record
net.minestom.server.world.biome.BiomeEffects

public record BiomeEffects(int fogColor, int skyColor, int waterColor, int waterFogColor, int foliageColor, int grassColor, BiomeEffects.GrassColorModifier grassColorModifier, BiomeParticle biomeParticle, BiomeEffects.AmbientSound ambientSound, BiomeEffects.MoodSound moodSound, BiomeEffects.AdditionsSound additionsSound, BiomeEffects.Music music) extends Record
  • Constructor Details

    • BiomeEffects

      public BiomeEffects(int fogColor, int skyColor, int waterColor, int waterFogColor, int foliageColor, int grassColor, BiomeEffects.GrassColorModifier grassColorModifier, BiomeParticle biomeParticle, BiomeEffects.AmbientSound ambientSound, BiomeEffects.MoodSound moodSound, BiomeEffects.AdditionsSound additionsSound, BiomeEffects.Music music)
      Creates an instance of a BiomeEffects record class.
      Parameters:
      fogColor - the value for the fogColor record component
      skyColor - the value for the skyColor record component
      waterColor - the value for the waterColor record component
      waterFogColor - the value for the waterFogColor record component
      foliageColor - the value for the foliageColor record component
      grassColor - the value for the grassColor record component
      grassColorModifier - the value for the grassColorModifier record component
      biomeParticle - the value for the biomeParticle record component
      ambientSound - the value for the ambientSound record component
      moodSound - the value for the moodSound record component
      additionsSound - the value for the additionsSound record component
      music - the value for the music record component
  • Method Details

    • builder

      public static BiomeEffects.Builder builder()
    • toNbt

      public net.kyori.adventure.nbt.CompoundBinaryTag toNbt()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fogColor

      public int fogColor()
      Returns the value of the fogColor record component.
      Returns:
      the value of the fogColor record component
    • skyColor

      public int skyColor()
      Returns the value of the skyColor record component.
      Returns:
      the value of the skyColor record component
    • waterColor

      public int waterColor()
      Returns the value of the waterColor record component.
      Returns:
      the value of the waterColor record component
    • waterFogColor

      public int waterFogColor()
      Returns the value of the waterFogColor record component.
      Returns:
      the value of the waterFogColor record component
    • foliageColor

      public int foliageColor()
      Returns the value of the foliageColor record component.
      Returns:
      the value of the foliageColor record component
    • grassColor

      public int grassColor()
      Returns the value of the grassColor record component.
      Returns:
      the value of the grassColor record component
    • grassColorModifier

      public BiomeEffects.GrassColorModifier grassColorModifier()
      Returns the value of the grassColorModifier record component.
      Returns:
      the value of the grassColorModifier record component
    • biomeParticle

      public BiomeParticle biomeParticle()
      Returns the value of the biomeParticle record component.
      Returns:
      the value of the biomeParticle record component
    • ambientSound

      public BiomeEffects.AmbientSound ambientSound()
      Returns the value of the ambientSound record component.
      Returns:
      the value of the ambientSound record component
    • moodSound

      public BiomeEffects.MoodSound moodSound()
      Returns the value of the moodSound record component.
      Returns:
      the value of the moodSound record component
    • additionsSound

      public BiomeEffects.AdditionsSound additionsSound()
      Returns the value of the additionsSound record component.
      Returns:
      the value of the additionsSound record component
    • music

      public BiomeEffects.Music music()
      Returns the value of the music record component.
      Returns:
      the value of the music record component