Record Class RandomBooleanFeature.Config
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.gen.feature.impl.RandomBooleanFeature.Config
- Record Components:
featureTrue- The feature executed if true.featureFalse- The feature executed if false.
- All Implemented Interfaces:
FeatureConfig
- Enclosing class:
RandomBooleanFeature
public static record RandomBooleanFeature.Config(PlacedFeature featureTrue, PlacedFeature featureFalse)
extends Record
implements FeatureConfig
Configuration record for the random boolean feature.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<RandomBooleanFeature.Config> The codec for serializing and deserializing the configuration.Fields inherited from interface FeatureConfig
NONE -
Constructor Summary
ConstructorsConstructorDescriptionConfig(PlacedFeature featureTrue, PlacedFeature featureFalse) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureFalserecord component.Returns the value of thefeatureTruerecord 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:
featureTrue- the value for thefeatureTruerecord componentfeatureFalse- the value for thefeatureFalserecord 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). -
featureTrue
Returns the value of thefeatureTruerecord component.- Returns:
- the value of the
featureTruerecord component
-
featureFalse
Returns the value of thefeatureFalserecord component.- Returns:
- the value of the
featureFalserecord component
-