Record Class BiomeModifiers.Effects
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.BiomeModifiers.Effects
- Enclosing class:
BiomeModifiers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeModifiers.Effects> static final BiomeModifiers.Effects -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.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
-
EMPTY
-
CODEC
-
-
Constructor Details
-
Effects
public Effects(Optional<Integer> waterColor, Optional<Integer> foliageColor, Optional<Integer> dryFoliageColor, Optional<Integer> grassColor) Creates an instance of aEffectsrecord class.- Parameters:
waterColor- the value for thewaterColorrecord componentfoliageColor- the value for thefoliageColorrecord componentdryFoliageColor- the value for thedryFoliageColorrecord componentgrassColor- the value for thegrassColorrecord component
-
-
Method Details
-
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
-
foliageColor
-
dryFoliageColor
-
grassColor
-