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 aAnimalsPathConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimalType
record component.float
chance()
Returns the value of thechance
record component.int
count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.int[]
Returns the value of theextension
record component.float
Returns the value of theextensionChance
record component.int
final int
hashCode()
Returns a hash code value for this object.int[]
points()
Returns the value of thepoints
record component.int[]
radius()
Returns the value of theradius
record component.final String
toString()
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 aAnimalsPathConfig
record class.- Parameters:
animalType
- the value for theanimalType
record componentcount
- the value for thecount
record componentchance
- the value for thechance
record componentpoints
- the value for thepoints
record componentradius
- the value for theradius
record componentextension
- the value for theextension
record componentextensionChance
- the value for theextensionChance
record 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 thecompare
method from their corresponding wrapper classes. -
animalType
Returns the value of theanimalType
record component.- Returns:
- the value of the
animalType
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
chance
public float chance()Returns the value of thechance
record component.- Returns:
- the value of the
chance
record component
-
points
public int[] points()Returns the value of thepoints
record component.- Returns:
- the value of the
points
record component
-
radius
public int[] radius()Returns the value of theradius
record component.- Returns:
- the value of the
radius
record component
-
extension
public int[] extension()Returns the value of theextension
record component.- Returns:
- the value of the
extension
record component
-
extensionChance
public float extensionChance()Returns the value of theextensionChance
record component.- Returns:
- the value of the
extensionChance
record component
-