Package net.minecraft.world.level.biome
Record Class Biome.ClimateSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.Biome.ClimateSettings
- Enclosing class:
- Biome
public static record Biome.ClimateSettings(boolean hasPrecipitation, float temperature, Biome.TemperatureModifier temperatureModifier, float downfall)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<Biome.ClimateSettings>private final floatThe field for thedownfallrecord component.private final booleanThe field for thehasPrecipitationrecord component.private final floatThe field for thetemperaturerecord component.private final Biome.TemperatureModifierThe field for thetemperatureModifierrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionClimateSettings(boolean hasPrecipitation, float temperature, Biome.TemperatureModifier temperatureModifier, float downfall) Creates an instance of aClimateSettingsrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfloatdownfall()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.booleanReturns the value of thehasPrecipitationrecord component.floatReturns the value of thetemperaturerecord component.Returns the value of thetemperatureModifierrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
hasPrecipitationprivate final boolean hasPrecipitationThe field for thehasPrecipitationrecord component.
- 
temperatureprivate final float temperatureThe field for thetemperaturerecord component.
- 
temperatureModifierThe field for thetemperatureModifierrecord component.
- 
downfallprivate final float downfallThe field for thedownfallrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
ClimateSettingspublic ClimateSettings(boolean hasPrecipitation, float temperature, Biome.TemperatureModifier temperatureModifier, float downfall) Creates an instance of aClimateSettingsrecord class.- Parameters:
- hasPrecipitation- the value for the- hasPrecipitationrecord component
- temperature- the value for the- temperaturerecord component
- temperatureModifier- the value for the- temperatureModifierrecord component
- downfall- the value for the- downfallrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
hasPrecipitationpublic boolean hasPrecipitation()Returns the value of thehasPrecipitationrecord component.- Returns:
- the value of the hasPrecipitationrecord component
 
- 
temperaturepublic float temperature()Returns the value of thetemperaturerecord component.- Returns:
- the value of the temperaturerecord component
 
- 
temperatureModifierReturns the value of thetemperatureModifierrecord component.- Returns:
- the value of the temperatureModifierrecord component
 
- 
downfallpublic float downfall()Returns the value of thedownfallrecord component.- Returns:
- the value of the downfallrecord component
 
 
-