Record Class MultifaceGrowthFeature.Config
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.gen.feature.impl.MultifaceGrowthFeature.Config
- Record Components:
stateProvider- The dynamic provider representing the organic growth to place.canPlaceOn- The list of block info targets considered valid support blocks.
- All Implemented Interfaces:
FeatureConfig
- Enclosing class:
MultifaceGrowthFeature
public static record MultifaceGrowthFeature.Config(BlockStateProvider stateProvider, List<BlockInfo> canPlaceOn)
extends Record
implements FeatureConfig
Configuration record for the multiface growth feature.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<MultifaceGrowthFeature.Config> The codec for serializing and deserializing the configuration.Fields inherited from interface FeatureConfig
NONE -
Constructor Summary
ConstructorsConstructorDescriptionConfig(BlockStateProvider stateProvider, List<BlockInfo> canPlaceOn) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanPlaceOnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestateProviderrecord component.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:
stateProvider- the value for thestateProviderrecord componentcanPlaceOn- the value for thecanPlaceOnrecord 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). -
stateProvider
Returns the value of thestateProviderrecord component.- Returns:
- the value of the
stateProviderrecord component
-
canPlaceOn
Returns the value of thecanPlaceOnrecord component.- Returns:
- the value of the
canPlaceOnrecord component
-