Record Class Feature
java.lang.Object
java.lang.Record
zombie.iso.worldgen.biomes.Feature
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachments
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
maxSize()
Returns the value of themaxSize
record component.int
minSize()
Returns the value of theminSize
record component.Returns the value of theprobability
record component.Returns the value of thetileGroups
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Feature
public Feature(List<TileGroup> tileGroups, int minSize, int maxSize, Map<Direction, List<TileGroup>> attachments, Probability probability) Creates an instance of aFeature
record class.- Parameters:
tileGroups
- the value for thetileGroups
record componentminSize
- the value for theminSize
record componentmaxSize
- the value for themaxSize
record componentattachments
- the value for theattachments
record componentprobability
- the value for theprobability
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. -
tileGroups
-
minSize
public int minSize()Returns the value of theminSize
record component.- Returns:
- the value of the
minSize
record component
-
maxSize
public int maxSize()Returns the value of themaxSize
record component.- Returns:
- the value of the
maxSize
record component
-
attachments
-
probability
Returns the value of theprobability
record component.- Returns:
- the value of the
probability
record component
-