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 named net/minecraft/world/biome/Biome$Weather
intermediary net/minecraft/class_1959$class_5482
official ddg$b
named hasPrecipitation
intermediary comp_1187
official b
named temperature
intermediary comp_844
official c
named temperatureModifier
intermediary comp_845
official d
named downfall
intermediary comp_846
official e
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<Biome.Weather> private final float
The field for thedownfall
record component.private final boolean
The field for thehasPrecipitation
record component.private final float
The field for thetemperature
record component.private final Biome.TemperatureModifier
The field for thetemperatureModifier
record component. -
Constructor Summary
ConstructorDescriptionWeather
(boolean bool, float temperature, Biome.TemperatureModifier temperatureModifier, float downfall) -
Method Summary
Modifier and TypeMethodDescriptionfloat
downfall()
Returns the value of thedownfall
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thehasPrecipitation
record component.float
Returns the value of thetemperature
record component.Returns the value of thetemperatureModifier
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
hasPrecipitation
private final boolean hasPrecipitationThe field for thehasPrecipitation
record component. -
temperature
private final float temperatureThe field for thetemperature
record component. -
temperatureModifier
The field for thetemperatureModifier
record component. -
downfall
private final float downfallThe field for thedownfall
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/biome/Biome$Weather;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_26398
Lnet/minecraft/class_1959$class_5482;field_26398:Lcom/mojang/serialization/MapCodec;
official a
Lddg$b;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Weather
Weather(boolean bool, float temperature, Biome.TemperatureModifier temperatureModifier, float downfall) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/biome/Biome$Weather;<init>(ZFLnet/minecraft/world/biome/Biome$TemperatureModifier;F)V
intermediary <init>
Lnet/minecraft/class_1959$class_5482;<init>(ZFLnet/minecraft/class_1959$class_5484;F)V
official <init>
Lddg$b;<init>(ZFLddg$d;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 thehasPrecipitation
record component.- Returns:
- the value of the
hasPrecipitation
record component
-
temperature
public float temperature()Returns the value of thetemperature
record component.- Returns:
- the value of the
temperature
record component
-
temperatureModifier
Returns the value of thetemperatureModifier
record component.- Returns:
- the value of the
temperatureModifier
record component
-
downfall
public float downfall()Returns the value of thedownfall
record component.- Returns:
- the value of the
downfall
record component
-