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 SummaryFieldsModifier and TypeFieldDescriptionprivate final longThe field for thecontinentalnessrecord component.private final longThe field for thedepthrecord component.private final longThe field for theerosionrecord component.private final longThe field for thehumidityrecord component.private final longThe field for thetemperaturerecord component.private final longThe field for theweirdnessrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionTargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness) Creates an instance of aTargetPointrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionlongReturns the value of thecontinentalnessrecord component.longdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.longerosion()Returns the value of theerosionrecord component.final inthashCode()Returns a hash code value for this object.longhumidity()Returns the value of thehumidityrecord component.longReturns the value of thetemperaturerecord component.protected long[]final StringtoString()Returns a string representation of this record class.longReturns the value of theweirdnessrecord component.
- 
Field Details- 
temperatureprivate final long temperatureThe field for thetemperaturerecord component.
- 
humidityprivate final long humidityThe field for thehumidityrecord component.
- 
continentalnessprivate final long continentalnessThe field for thecontinentalnessrecord component.
- 
erosionprivate final long erosionThe field for theerosionrecord component.
- 
depthprivate final long depthThe field for thedepthrecord component.
- 
weirdnessprivate final long weirdnessThe field for theweirdnessrecord component.
 
- 
- 
Constructor Details- 
TargetPointpublic TargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness) Creates an instance of aTargetPointrecord class.- Parameters:
- temperature- the value for the- temperaturerecord component
- humidity- the value for the- humidityrecord component
- continentalness- the value for the- continentalnessrecord component
- erosion- the value for the- erosionrecord component
- depth- the value for the- depthrecord component
- weirdness- the value for the- weirdnessrecord component
 
 
- 
- 
Method Details- 
toParameterArrayprotected long[] toParameterArray()
- 
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. All components in this record class are compared with '=='.
- 
temperaturepublic long temperature()Returns the value of thetemperaturerecord component.- Returns:
- the value of the temperaturerecord component
 
- 
humiditypublic long humidity()Returns the value of thehumidityrecord component.- Returns:
- the value of the humidityrecord component
 
- 
continentalnesspublic long continentalness()Returns the value of thecontinentalnessrecord component.- Returns:
- the value of the continentalnessrecord component
 
- 
erosionpublic long erosion()Returns the value of theerosionrecord component.- Returns:
- the value of the erosionrecord component
 
- 
depthpublic long depth()Returns the value of thedepthrecord component.- Returns:
- the value of the depthrecord component
 
- 
weirdnesspublic long weirdness()Returns the value of theweirdnessrecord component.- Returns:
- the value of the weirdnessrecord component
 
 
-