Record Class GeodeFeature.Config
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.gen.feature.impl.GeodeFeature.Config
- Record Components:
outerWallProvider- The block provider for the outermost protective shell.middleWallProvider- The block provider for the intermediate transition layer.innerWallProvider- The block provider for the inner geode crust.fillingProvider- The block provider used to fill the hollow center.innerPlacementsProvider- The block provider used for random crystal attachments on the inner wall.invalidBlocks- A list of block info structures that will abort generation if encountered at the origin.minRadius- The baseline radius of the inner geode cavity.maxRadius- The absolute maximum radius of the geode's outermost shell.
- All Implemented Interfaces:
FeatureConfig
- Enclosing class:
GeodeFeature
public static record GeodeFeature.Config(BlockStateProvider outerWallProvider, BlockStateProvider middleWallProvider, BlockStateProvider innerWallProvider, BlockStateProvider fillingProvider, BlockStateProvider innerPlacementsProvider, List<BlockInfo> invalidBlocks, int minRadius, int maxRadius)
extends Record
implements FeatureConfig
Configuration record for the geode feature.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<GeodeFeature.Config> The codec for serializing and deserializing the configuration.Fields inherited from interface FeatureConfig
NONE -
Constructor Summary
ConstructorsConstructorDescriptionConfig(BlockStateProvider outerWallProvider, BlockStateProvider middleWallProvider, BlockStateProvider innerWallProvider, BlockStateProvider fillingProvider, BlockStateProvider innerPlacementsProvider, List<BlockInfo> invalidBlocks, int minRadius, int maxRadius) 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 thefillingProviderrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinnerPlacementsProviderrecord component.Returns the value of theinnerWallProviderrecord component.Returns the value of theinvalidBlocksrecord component.intReturns the value of themaxRadiusrecord component.Returns the value of themiddleWallProviderrecord component.intReturns the value of theminRadiusrecord component.Returns the value of theouterWallProviderrecord 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
public Config(BlockStateProvider outerWallProvider, BlockStateProvider middleWallProvider, BlockStateProvider innerWallProvider, BlockStateProvider fillingProvider, BlockStateProvider innerPlacementsProvider, List<BlockInfo> invalidBlocks, int minRadius, int maxRadius) Creates an instance of aConfigrecord class.- Parameters:
outerWallProvider- the value for theouterWallProviderrecord componentmiddleWallProvider- the value for themiddleWallProviderrecord componentinnerWallProvider- the value for theinnerWallProviderrecord componentfillingProvider- the value for thefillingProviderrecord componentinnerPlacementsProvider- the value for theinnerPlacementsProviderrecord componentinvalidBlocks- the value for theinvalidBlocksrecord componentminRadius- the value for theminRadiusrecord componentmaxRadius- the value for themaxRadiusrecord 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. -
outerWallProvider
Returns the value of theouterWallProviderrecord component.- Returns:
- the value of the
outerWallProviderrecord component
-
middleWallProvider
Returns the value of themiddleWallProviderrecord component.- Returns:
- the value of the
middleWallProviderrecord component
-
innerWallProvider
Returns the value of theinnerWallProviderrecord component.- Returns:
- the value of the
innerWallProviderrecord component
-
fillingProvider
Returns the value of thefillingProviderrecord component.- Returns:
- the value of the
fillingProviderrecord component
-
innerPlacementsProvider
Returns the value of theinnerPlacementsProviderrecord component.- Returns:
- the value of the
innerPlacementsProviderrecord component
-
invalidBlocks
Returns the value of theinvalidBlocksrecord component.- Returns:
- the value of the
invalidBlocksrecord component
-
minRadius
-
maxRadius
-