Package net.minecraft.world.level.biome
Record Class Climate.TargetPoint
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.Climate.TargetPoint
- Enclosing class:
- Climate
public static record Climate.TargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
The field for thecontinentalness
record component.private final long
The field for thedepth
record component.private final long
The field for theerosion
record component.private final long
The field for thehumidity
record component.private final long
The field for thetemperature
record component.private final long
The field for theweirdness
record component. -
Constructor Summary
ConstructorDescriptionTargetPoint
(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness) Creates an instance of aTargetPoint
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of thecontinentalness
record component.long
depth()
Returns the value of thedepth
record component.final boolean
Indicates whether some other object is "equal to" this one.long
erosion()
Returns the value of theerosion
record component.final int
hashCode()
Returns a hash code value for this object.long
humidity()
Returns the value of thehumidity
record component.long
Returns the value of thetemperature
record component.protected long[]
final String
toString()
Returns a string representation of this record class.long
Returns the value of theweirdness
record component.
-
Field Details
-
temperature
private final long temperatureThe field for thetemperature
record component. -
humidity
private final long humidityThe field for thehumidity
record component. -
continentalness
private final long continentalnessThe field for thecontinentalness
record component. -
erosion
private final long erosionThe field for theerosion
record component. -
depth
private final long depthThe field for thedepth
record component. -
weirdness
private final long weirdnessThe field for theweirdness
record component.
-
-
Constructor Details
-
TargetPoint
public TargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness) Creates an instance of aTargetPoint
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 component
-
-
Method Details
-
toParameterArray
protected long[] toParameterArray() -
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. All components in this record class are compared with '=='. -
temperature
public long temperature()Returns the value of thetemperature
record component.- Returns:
- the value of the
temperature
record component
-
humidity
public long humidity()Returns the value of thehumidity
record component.- Returns:
- the value of the
humidity
record component
-
continentalness
public long continentalness()Returns the value of thecontinentalness
record component.- Returns:
- the value of the
continentalness
record component
-
erosion
public long erosion()Returns the value of theerosion
record component.- Returns:
- the value of the
erosion
record component
-
depth
public long depth()Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-
weirdness
public long weirdness()Returns the value of theweirdness
record component.- Returns:
- the value of the
weirdness
record component
-