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
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionTargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness) Creates an instance of aTargetPointrecord class. -
Method Summary
Modifier 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
-
temperature
private final long temperatureThe field for thetemperaturerecord component. -
humidity
private final long humidityThe field for thehumidityrecord component. -
continentalness
private final long continentalnessThe field for thecontinentalnessrecord component. -
erosion
private final long erosionThe field for theerosionrecord component. -
depth
private final long depthThe field for thedepthrecord component. -
weirdness
private final long weirdnessThe field for theweirdnessrecord component.
-
-
Constructor Details
-
TargetPoint
public TargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness) Creates an instance of aTargetPointrecord class.- Parameters:
temperature- the value for thetemperaturerecord componenthumidity- the value for thehumidityrecord componentcontinentalness- the value for thecontinentalnessrecord componenterosion- the value for theerosionrecord componentdepth- the value for thedepthrecord componentweirdness- the value for theweirdnessrecord 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 thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
humidity
public long humidity()Returns the value of thehumidityrecord component.- Returns:
- the value of the
humidityrecord component
-
continentalness
public long continentalness()Returns the value of thecontinentalnessrecord component.- Returns:
- the value of the
continentalnessrecord component
-
erosion
public long erosion()Returns the value of theerosionrecord component.- Returns:
- the value of the
erosionrecord component
-
depth
public long depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
weirdness
public long weirdness()Returns the value of theweirdnessrecord component.- Returns:
- the value of the
weirdnessrecord component
-