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
Modifier and TypeClassDescriptionstatic final record
static final class
static enum
static final record
static final record
-
Constructor Summary
ConstructorDescriptionBiomeEffects
(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 aBiomeEffects
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionsSound
record component.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.int
fogColor()
Returns the value of thefogColor
record component.int
Returns the value of thefoliageColor
record component.int
Returns the value of thegrassColor
record component.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.music()
Returns the value of themusic
record component.int
skyColor()
Returns the value of theskyColor
record component.org.jglrxavpok.hephaistos.nbt.NBTCompound
toNbt()
final String
toString()
Returns a string representation of this record class.int
Returns the value of thewaterColor
record component.int
Returns the value of thewaterFogColor
record 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 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 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 thefogColor
record component.- Returns:
- the value of the
fogColor
record component
-
skyColor
public int skyColor()Returns the value of theskyColor
record component.- Returns:
- the value of the
skyColor
record component
-
waterColor
public int waterColor()Returns the value of thewaterColor
record component.- Returns:
- the value of the
waterColor
record component
-
waterFogColor
public int waterFogColor()Returns the value of thewaterFogColor
record component.- Returns:
- the value of the
waterFogColor
record component
-
foliageColor
public int foliageColor()Returns the value of thefoliageColor
record component.- Returns:
- the value of the
foliageColor
record component
-
grassColor
public int 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
-