Package net.minecraft.world.biome
Record Class Biome.Weather
java.lang.Object
java.lang.Record
net.minecraft.world.biome.Biome.Weather
- Record Components:
hasPrecipitation-temperature-temperatureModifier-downfall-
- Enclosing class:
Biome
private static record Biome.Weather(boolean hasPrecipitation, float temperature, Biome.TemperatureModifier temperatureModifier, float downfall)
extends Record
- Mappings:
Namespace Name official cni$bintermediary net/minecraft/class_1959$class_5482named net/minecraft/world/biome/Biome$Weatherofficial bintermediary comp_1187named hasPrecipitationofficial cintermediary comp_844named temperatureofficial dintermediary comp_845named temperatureModifierofficial eintermediary comp_846named downfall
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<Biome.Weather>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 Summary
ConstructorsConstructorDescriptionWeather(boolean bool, float temperature, Biome.TemperatureModifier temperatureModifier, float downfall) -
Method Summary
Modifier 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
-
hasPrecipitation
private final boolean hasPrecipitationThe field for thehasPrecipitationrecord component. -
temperature
private final float temperatureThe field for thetemperaturerecord component. -
temperatureModifier
The field for thetemperatureModifierrecord component. -
downfall
private final float downfallThe field for thedownfallrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLcni$b;a:Lcom/mojang/serialization/MapCodec;intermediary field_26398Lnet/minecraft/class_1959$class_5482;field_26398:Lcom/mojang/serialization/MapCodec;named CODECLnet/minecraft/world/biome/Biome$Weather;CODEC:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Weather
Weather(boolean bool, float temperature, Biome.TemperatureModifier temperatureModifier, float downfall) - Mappings:
Namespace Name Mixin selector official <init>Lcni$b;<init>(ZFLcni$d;F)Vintermediary <init>Lnet/minecraft/class_1959$class_5482;<init>(ZFLnet/minecraft/class_1959$class_5484;F)Vnamed <init>Lnet/minecraft/world/biome/Biome$Weather;<init>(ZFLnet/minecraft/world/biome/Biome$TemperatureModifier;F)V
-
-
Method Details
-
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 '=='. -
hasPrecipitation
public boolean hasPrecipitation()Returns the value of thehasPrecipitationrecord component.- Returns:
- the value of the
hasPrecipitationrecord component
-
temperature
public float temperature()Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
temperatureModifier
Returns the value of thetemperatureModifierrecord component.- Returns:
- the value of the
temperatureModifierrecord component
-
downfall
public float downfall()Returns the value of thedownfallrecord component.- Returns:
- the value of the
downfallrecord component
-