Record Class DripstoneClusterFeature.Config
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.gen.feature.impl.DripstoneClusterFeature.Config
- Record Components:
stateProvider- The dynamic provider supplying the block used to build the cluster.targets- The list of allowed target block identifiers that can be overwritten.radius- The maximum horizontal radius of the cluster.maxHeight- The maximum possible block length for the central columns.upward- True to generate the cluster growing upwards, false for downwards.
- All Implemented Interfaces:
FeatureConfig
- Enclosing class:
DripstoneClusterFeature
public static record DripstoneClusterFeature.Config(BlockStateProvider stateProvider, List<BlockInfo> targets, int radius, int maxHeight, boolean upward)
extends Record
implements FeatureConfig
Configuration record for the dripstone cluster feature.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<DripstoneClusterFeature.Config> The codec for serializing and deserializing the configuration.Fields inherited from interface FeatureConfig
NONE -
Constructor Summary
ConstructorsConstructorDescriptionConfig(BlockStateProvider stateProvider, List<BlockInfo> targets, int radius, int maxHeight, boolean upward) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxHeightrecord component.intradius()Returns the value of theradiusrecord component.Returns the value of thestateProviderrecord component.targets()Returns the value of thetargetsrecord component.final StringtoString()Returns a string representation of this record class.booleanupward()Returns the value of theupwardrecord component.
-
Field Details
-
CODEC
The codec for serializing and deserializing the configuration.
-
-
Constructor Details
-
Config
public Config(BlockStateProvider stateProvider, List<BlockInfo> targets, int radius, int maxHeight, boolean upward) Creates an instance of aConfigrecord class.- Parameters:
stateProvider- the value for thestateProviderrecord componenttargets- the value for thetargetsrecord componentradius- the value for theradiusrecord componentmaxHeight- the value for themaxHeightrecord componentupward- the value for theupwardrecord 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 thecomparemethod from their corresponding wrapper classes. -
stateProvider
Returns the value of thestateProviderrecord component.- Returns:
- the value of the
stateProviderrecord component
-
targets
-
radius
-
maxHeight
-
upward
-