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
Modifier and TypeFieldDescriptionprivate final float
The field for thecontinents
record component.private final float
The field for theerosion
record component.private final float
The field for theridges
record component.private final float
The field for theweirdness
record component. -
Constructor Summary
ConstructorDescriptionPoint
(float continents, float erosion, float ridges, float weirdness) Creates an instance of aPoint
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the value of thecontinents
record component.final boolean
Indicates whether some other object is "equal to" this one.float
erosion()
Returns the value of theerosion
record component.final int
hashCode()
Returns a hash code value for this object.float
ridges()
Returns the value of theridges
record component.final String
toString()
Returns a string representation of this record class.float
Returns the value of theweirdness
record component.
-
Field Details
-
continents
private final float continentsThe field for thecontinents
record component. -
erosion
private final float erosionThe field for theerosion
record component. -
ridges
private final float ridgesThe field for theridges
record component. -
weirdness
private final float weirdnessThe field for theweirdness
record component.
-
-
Constructor Details
-
Point
public Point(float continents, float erosion, float ridges, float weirdness) Creates an instance of aPoint
record class.- Parameters:
continents
- the value for thecontinents
record componenterosion
- the value for theerosion
record componentridges
- the value for theridges
record componentweirdness
- the value for theweirdness
record 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 thecontinents
record component.- Returns:
- the value of the
continents
record component
-
erosion
public float erosion()Returns the value of theerosion
record component.- Returns:
- the value of the
erosion
record component
-
ridges
public float ridges()Returns the value of theridges
record component.- Returns:
- the value of the
ridges
record component
-
weirdness
public float weirdness()Returns the value of theweirdness
record component.- Returns:
- the value of the
weirdness
record component
-