Record Class Grass
java.lang.Object
java.lang.Record
zombie.iso.worldgen.biomes.Grass
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.float
Returns the value of thefernChance
record component.Returns the value of thegrassStages
record component.final int
hashCode()
Returns a hash code value for this object.float
Returns the value of thenoGrassDiv
record component.Returns the value of thenoGrassStages
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Grass
public Grass(float fernChance, float noGrassDiv, List<Double> noGrassStages, List<Double> grassStages) Creates an instance of aGrass
record class.- Parameters:
fernChance
- the value for thefernChance
record componentnoGrassDiv
- the value for thenoGrassDiv
record componentnoGrassStages
- the value for thenoGrassStages
record componentgrassStages
- the value for thegrassStages
record component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
fernChance
public float fernChance()Returns the value of thefernChance
record component.- Returns:
- the value of the
fernChance
record component
-
noGrassDiv
public float noGrassDiv()Returns the value of thenoGrassDiv
record component.- Returns:
- the value of the
noGrassDiv
record component
-
noGrassStages
-
grassStages
-