Record Class SimpleRandomFeature.Config
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.gen.feature.impl.SimpleRandomFeature.Config
- Record Components:
features- The pool of potential features to select from.
- All Implemented Interfaces:
FeatureConfig
- Enclosing class:
SimpleRandomFeature
public static record SimpleRandomFeature.Config(List<PlacedFeature> features)
extends Record
implements FeatureConfig
Configuration record for the simple random feature.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<SimpleRandomFeature.Config> The codec for serializing and deserializing the configuration.Fields inherited from interface FeatureConfig
NONE -
Constructor Summary
ConstructorsConstructorDescriptionConfig(List<PlacedFeature> features) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
The codec for serializing and deserializing the configuration.
-
-
Constructor Details
-
Config
Creates an instance of aConfigrecord class.- Parameters:
features- the value for thefeaturesrecord 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). -
features
-