Record Class BiomeModifiers.Climate
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.BiomeModifiers.Climate
- Enclosing class:
BiomeModifiers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeModifiers.Climate> static final BiomeModifiers.Climate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownfall()Returns the value of thedownfallrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehasPrecipitationrecord component.Returns the value of thetemperaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
CODEC
-
-
Constructor Details
-
Climate
public Climate(Optional<Float> temperature, Optional<Float> downfall, Optional<Boolean> hasPrecipitation) Creates an instance of aClimaterecord class.- Parameters:
temperature- the value for thetemperaturerecord componentdownfall- the value for thedownfallrecord componenthasPrecipitation- the value for thehasPrecipitationrecord 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). -
temperature
-
downfall
-
hasPrecipitation
-