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 booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thefernChancerecord component.Returns the value of thegrassStagesrecord component.final inthashCode()Returns a hash code value for this object.floatReturns the value of thenoGrassDivrecord component.Returns the value of thenoGrassStagesrecord component.final StringtoString()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 aGrassrecord class.- Parameters:
fernChance- the value for thefernChancerecord componentnoGrassDiv- the value for thenoGrassDivrecord componentnoGrassStages- the value for thenoGrassStagesrecord componentgrassStages- the value for thegrassStagesrecord 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 thecomparemethod from their corresponding wrapper classes. -
fernChance
public float fernChance()Returns the value of thefernChancerecord component.- Returns:
- the value of the
fernChancerecord component
-
noGrassDiv
public float noGrassDiv()Returns the value of thenoGrassDivrecord component.- Returns:
- the value of the
noGrassDivrecord component
-
noGrassStages
-
grassStages
-