Package net.minecraft.world.level.biome
Record Class TerrainShaper.Point
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.TerrainShaper.Point
- Enclosing class:
- TerrainShaper
public static record TerrainShaper.Point(float continents, float erosion, float ridges, float weirdness)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thecontinentsrecord component.private final floatThe field for theerosionrecord component.private final floatThe field for theridgesrecord component.private final floatThe field for theweirdnessrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPoint(float continents, float erosion, float ridges, float weirdness) Creates an instance of aPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thecontinentsrecord component.final booleanIndicates whether some other object is "equal to" this one.floaterosion()Returns the value of theerosionrecord component.final inthashCode()Returns a hash code value for this object.floatridges()Returns the value of theridgesrecord component.final StringtoString()Returns a string representation of this record class.floatReturns the value of theweirdnessrecord component.
-
Field Details
-
continents
private final float continentsThe field for thecontinentsrecord component. -
erosion
private final float erosionThe field for theerosionrecord component. -
ridges
private final float ridgesThe field for theridgesrecord component. -
weirdness
private final float weirdnessThe field for theweirdnessrecord component.
-
-
Constructor Details
-
Point
public Point(float continents, float erosion, float ridges, float weirdness) Creates an instance of aPointrecord class.- Parameters:
continents- the value for thecontinentsrecord componenterosion- the value for theerosionrecord componentridges- the value for theridgesrecord componentweirdness- the value for theweirdnessrecord component
-
-
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. All components in this record class are compared with '=='. -
continents
public float continents()Returns the value of thecontinentsrecord component.- Returns:
- the value of the
continentsrecord component
-
erosion
public float erosion()Returns the value of theerosionrecord component.- Returns:
- the value of the
erosionrecord component
-
ridges
public float ridges()Returns the value of theridgesrecord component.- Returns:
- the value of the
ridgesrecord component
-
weirdness
public float weirdness()Returns the value of theweirdnessrecord component.- Returns:
- the value of the
weirdnessrecord component
-