Package net.minecraft.world.level.biome
Record Class Climate.ParameterPoint
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.Climate.ParameterPoint
- Enclosing class:
Climate
public static record Climate.ParameterPoint(Climate.Parameter temperature, Climate.Parameter humidity, Climate.Parameter continentalness, Climate.Parameter erosion, Climate.Parameter depth, Climate.Parameter weirdness, long offset)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Climate.ParameterPoint> private final Climate.Parameter
The field for thecontinentalness
record component.private final Climate.Parameter
The field for thedepth
record component.private final Climate.Parameter
The field for theerosion
record component.private final Climate.Parameter
The field for thehumidity
record component.private final long
The field for theoffset
record component.private final Climate.Parameter
The field for thetemperature
record component.private final Climate.Parameter
The field for theweirdness
record component. -
Constructor Summary
ConstructorDescriptionParameterPoint
(Climate.Parameter temperature, Climate.Parameter humidity, Climate.Parameter continentalness, Climate.Parameter erosion, Climate.Parameter depth, Climate.Parameter weirdness, long offset) Creates an instance of aParameterPoint
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontinentalness
record component.depth()
Returns the value of thedepth
record component.final boolean
Indicates whether some other object is "equal to" this one.erosion()
Returns the value of theerosion
record component.(package private) long
fitness
(Climate.TargetPoint p_186883_) final int
hashCode()
Returns a hash code value for this object.humidity()
Returns the value of thehumidity
record component.long
offset()
Returns the value of theoffset
record component.protected List
<Climate.Parameter> Returns the value of thetemperature
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theweirdness
record component.
-
Field Details
-
temperature
The field for thetemperature
record component. -
humidity
The field for thehumidity
record component. -
continentalness
The field for thecontinentalness
record component. -
erosion
The field for theerosion
record component. -
depth
The field for thedepth
record component. -
weirdness
The field for theweirdness
record component. -
offset
private final long offsetThe field for theoffset
record component. -
CODEC
-
-
Constructor Details
-
ParameterPoint
public ParameterPoint(Climate.Parameter temperature, Climate.Parameter humidity, Climate.Parameter continentalness, Climate.Parameter erosion, Climate.Parameter depth, Climate.Parameter weirdness, long offset) Creates an instance of aParameterPoint
record class.- Parameters:
temperature
- the value for thetemperature
record componenthumidity
- the value for thehumidity
record componentcontinentalness
- the value for thecontinentalness
record componenterosion
- the value for theerosion
record componentdepth
- the value for thedepth
record componentweirdness
- the value for theweirdness
record componentoffset
- the value for theoffset
record component
-
-
Method Details
-
fitness
-
parameterSpace
-
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 '=='. -
temperature
Returns the value of thetemperature
record component.- Returns:
- the value of the
temperature
record component
-
humidity
Returns the value of thehumidity
record component.- Returns:
- the value of the
humidity
record component
-
continentalness
Returns the value of thecontinentalness
record component.- Returns:
- the value of the
continentalness
record component
-
erosion
Returns the value of theerosion
record component.- Returns:
- the value of the
erosion
record component
-
depth
Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-
weirdness
Returns the value of theweirdness
record component.- Returns:
- the value of the
weirdness
record component
-
offset
public long offset()Returns the value of theoffset
record component.- Returns:
- the value of the
offset
record component
-