Package net.minestom.server.world.biomes
Record Class BiomeEffects
java.lang.Object
java.lang.Record
net.minestom.server.world.biomes.BiomeEffects
public record BiomeEffects(int fogColor, int skyColor, int waterColor, int waterFogColor, int foliageColor, int grassColor, BiomeEffects.GrassColorModifier grassColorModifier, BiomeParticle biomeParticle, NamespaceID ambientSound, BiomeEffects.MoodSound moodSound, BiomeEffects.AdditionsSound additionsSound, BiomeEffects.Music music)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final classstatic enumstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionBiomeEffects(int fogColor, int skyColor, int waterColor, int waterFogColor, int foliageColor, int grassColor, BiomeEffects.GrassColorModifier grassColorModifier, BiomeParticle biomeParticle, NamespaceID ambientSound, BiomeEffects.MoodSound moodSound, BiomeEffects.AdditionsSound additionsSound, BiomeEffects.Music music) 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.intfogColor()Returns the value of thefogColorrecord component.intReturns the value of thefoliageColorrecord component.intReturns 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.intskyColor()Returns the value of theskyColorrecord component.org.jglrxavpok.hephaistos.nbt.NBTCompoundtoNbt()final StringtoString()Returns a string representation of this record class.intReturns the value of thewaterColorrecord component.intReturns the value of thewaterFogColorrecord component.
-
Constructor Details
-
BiomeEffects
public BiomeEffects(int fogColor, int skyColor, int waterColor, int waterFogColor, int foliageColor, int grassColor, BiomeEffects.GrassColorModifier grassColorModifier, BiomeParticle biomeParticle, NamespaceID ambientSound, BiomeEffects.MoodSound moodSound, BiomeEffects.AdditionsSound additionsSound, BiomeEffects.Music music) 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 component
-
-
Method Details
-
builder
-
toNbt
public org.jglrxavpok.hephaistos.nbt.NBTCompound toNbt() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
fogColor
public int fogColor()Returns the value of thefogColorrecord component.- Returns:
- the value of the
fogColorrecord component
-
skyColor
public int skyColor()Returns the value of theskyColorrecord component.- Returns:
- the value of the
skyColorrecord component
-
waterColor
public int waterColor()Returns the value of thewaterColorrecord component.- Returns:
- the value of the
waterColorrecord component
-
waterFogColor
public int waterFogColor()Returns the value of thewaterFogColorrecord component.- Returns:
- the value of the
waterFogColorrecord component
-
foliageColor
public int foliageColor()Returns the value of thefoliageColorrecord component.- Returns:
- the value of the
foliageColorrecord component
-
grassColor
public int 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
-