Record Class AnimalsPathConfig
java.lang.Object
java.lang.Record
zombie.iso.worldgen.zones.AnimalsPathConfig
-
Constructor Summary
ConstructorsConstructorDescriptionAnimalsPathConfig(String animalType, int count, float chance, int[] points, int[] radius, int[] extension, float extensionChance) Creates an instance of aAnimalsPathConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimalTyperecord component.floatchance()Returns the value of thechancerecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.int[]Returns the value of theextensionrecord component.floatReturns the value of theextensionChancerecord component.intfinal inthashCode()Returns a hash code value for this object.int[]points()Returns the value of thepointsrecord component.int[]radius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnimalsPathConfig
public AnimalsPathConfig(String animalType, int count, float chance, int[] points, int[] radius, int[] extension, float extensionChance) Creates an instance of aAnimalsPathConfigrecord class.- Parameters:
animalType- the value for theanimalTyperecord componentcount- the value for thecountrecord componentchance- the value for thechancerecord componentpoints- the value for thepointsrecord componentradius- the value for theradiusrecord componentextension- the value for theextensionrecord componentextensionChance- the value for theextensionChancerecord component
-
-
Method Details
-
getNameHash
public int getNameHash() -
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. -
animalType
Returns the value of theanimalTyperecord component.- Returns:
- the value of the
animalTyperecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
chance
public float chance()Returns the value of thechancerecord component.- Returns:
- the value of the
chancerecord component
-
points
public int[] points()Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-
radius
public int[] radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
extension
public int[] extension()Returns the value of theextensionrecord component.- Returns:
- the value of the
extensionrecord component
-
extensionChance
public float extensionChance()Returns the value of theextensionChancerecord component.- Returns:
- the value of the
extensionChancerecord component
-