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.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, Map<Direction, List<TileGroup>> attachments, Probability probability) Creates an instance of aFeature
record class.- Parameters:
tileGroups
- the value for thetileGroups
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
tileGroups
-
attachments
-
probability
Returns the value of theprobability
record component.- Returns:
- the value of the
probability
record component
-