Record Class BiomeEffects
java.lang.Object
java.lang.Record
net.minestom.server.world.biome.BiomeEffects
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBiomeEffects(RGBLike waterColor, @Nullable RGBLike foliageColor, @Nullable RGBLike dryFoliageColor, @Nullable RGBLike grassColor, BiomeEffects.GrassColorModifier grassColorModifier) Creates an instance of aBiomeEffectsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BiomeEffects.Builderbuilder()Returns the value of thedryFoliageColorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefoliageColorrecord component.Returns the value of thegrassColorrecord component.Returns the value of thegrassColorModifierrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thewaterColorrecord component.
-
Field Details
-
DEFAULT
-
CODEC
-
-
Constructor Details
-
BiomeEffects
public BiomeEffects(RGBLike waterColor, @Nullable @Nullable RGBLike foliageColor, @Nullable @Nullable RGBLike dryFoliageColor, @Nullable @Nullable RGBLike grassColor, BiomeEffects.GrassColorModifier grassColorModifier) Creates an instance of aBiomeEffectsrecord class.- Parameters:
waterColor- the value for thewaterColorrecord componentfoliageColor- the value for thefoliageColorrecord componentdryFoliageColor- the value for thedryFoliageColorrecord componentgrassColor- the value for thegrassColorrecord componentgrassColorModifier- the value for thegrassColorModifierrecord component
-
-
Method Details
-
builder
-
toString
-
hashCode
-
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). -
waterColor
Returns the value of thewaterColorrecord component.- Returns:
- the value of the
waterColorrecord component
-
foliageColor
-
dryFoliageColor
-
grassColor
-
grassColorModifier
Returns the value of thegrassColorModifierrecord component.- Returns:
- the value of the
grassColorModifierrecord component
-