Record Class TreeFeature.Config
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.gen.feature.impl.TreeFeature.Config
- Record Components:
trunkProvider- The provider determining log materials.foliageProvider- The provider determining leaf materials.dirtProvider- The provider enforcing root structural substrates.trunkPlacer- The algorithmic framework charting trunk ascension.foliagePlacer- The algorithmic framework charting foliage aggregation.rootPlacer- The algorithmic framework mapping subterranean roots.decorators- The sequential post-assembly aesthetic mutators.baseHeight- The minimum guaranteed vertical limit of the base trunk array.heightRandA- The primary integer scalar randomizing vertical magnitude.heightRandB- The secondary integer scalar randomizing vertical magnitude.foliageRadius- The minimum guaranteed horizontal limit spanning the base foliage array.foliageRadiusRand- The integer scalar randomizing horizontal magnitude encompassing the foliage canopy.dirtTargets- The categorical whitelist determining valid surfaces permitting organic origin points.
- All Implemented Interfaces:
FeatureConfig
- Enclosing class:
TreeFeature
public static record TreeFeature.Config(BlockStateProvider trunkProvider, BlockStateProvider foliageProvider, BlockStateProvider dirtProvider, TrunkPlacer trunkPlacer, FoliagePlacer foliagePlacer, RootPlacer rootPlacer, List<TreeDecorator> decorators, int baseHeight, int heightRandA, int heightRandB, int foliageRadius, int foliageRadiusRand, List<BlockInfo> dirtTargets)
extends Record
implements FeatureConfig
Structure detailing the placement algorithms utilized by the tree feature.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<TreeFeature.Config> Codec responsible for serializing and deserializing the config parameters.Fields inherited from interface FeatureConfig
NONE -
Constructor Summary
ConstructorsConstructorDescriptionConfig(BlockStateProvider trunkProvider, BlockStateProvider foliageProvider, BlockStateProvider dirtProvider, TrunkPlacer trunkPlacer, FoliagePlacer foliagePlacer, RootPlacer rootPlacer, List<TreeDecorator> decorators, int baseHeight, int heightRandA, int heightRandB, int foliageRadius, int foliageRadiusRand, List<BlockInfo> dirtTargets) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebaseHeightrecord component.Returns the value of thedecoratorsrecord component.Returns the value of thedirtProviderrecord component.Returns the value of thedirtTargetsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefoliagePlacerrecord component.Returns the value of thefoliageProviderrecord component.intReturns the value of thefoliageRadiusrecord component.intReturns the value of thefoliageRadiusRandrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theheightRandArecord component.intReturns the value of theheightRandBrecord component.Returns the value of therootPlacerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrunkPlacerrecord component.Returns the value of thetrunkProviderrecord component.
-
Field Details
-
CODEC
Codec responsible for serializing and deserializing the config parameters.
-
-
Constructor Details
-
Config
public Config(BlockStateProvider trunkProvider, BlockStateProvider foliageProvider, BlockStateProvider dirtProvider, TrunkPlacer trunkPlacer, FoliagePlacer foliagePlacer, RootPlacer rootPlacer, List<TreeDecorator> decorators, int baseHeight, int heightRandA, int heightRandB, int foliageRadius, int foliageRadiusRand, List<BlockInfo> dirtTargets) Creates an instance of aConfigrecord class.- Parameters:
trunkProvider- the value for thetrunkProviderrecord componentfoliageProvider- the value for thefoliageProviderrecord componentdirtProvider- the value for thedirtProviderrecord componenttrunkPlacer- the value for thetrunkPlacerrecord componentfoliagePlacer- the value for thefoliagePlacerrecord componentrootPlacer- the value for therootPlacerrecord componentdecorators- the value for thedecoratorsrecord componentbaseHeight- the value for thebaseHeightrecord componentheightRandA- the value for theheightRandArecord componentheightRandB- the value for theheightRandBrecord componentfoliageRadius- the value for thefoliageRadiusrecord componentfoliageRadiusRand- the value for thefoliageRadiusRandrecord componentdirtTargets- the value for thedirtTargetsrecord 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. -
trunkProvider
Returns the value of thetrunkProviderrecord component.- Returns:
- the value of the
trunkProviderrecord component
-
foliageProvider
Returns the value of thefoliageProviderrecord component.- Returns:
- the value of the
foliageProviderrecord component
-
dirtProvider
Returns the value of thedirtProviderrecord component.- Returns:
- the value of the
dirtProviderrecord component
-
trunkPlacer
Returns the value of thetrunkPlacerrecord component.- Returns:
- the value of the
trunkPlacerrecord component
-
foliagePlacer
Returns the value of thefoliagePlacerrecord component.- Returns:
- the value of the
foliagePlacerrecord component
-
rootPlacer
Returns the value of therootPlacerrecord component.- Returns:
- the value of the
rootPlacerrecord component
-
decorators
Returns the value of thedecoratorsrecord component.- Returns:
- the value of the
decoratorsrecord component
-
baseHeight
public int baseHeight()Returns the value of thebaseHeightrecord component.- Returns:
- the value of the
baseHeightrecord component
-
heightRandA
public int heightRandA()Returns the value of theheightRandArecord component.- Returns:
- the value of the
heightRandArecord component
-
heightRandB
public int heightRandB()Returns the value of theheightRandBrecord component.- Returns:
- the value of the
heightRandBrecord component
-
foliageRadius
public int foliageRadius()Returns the value of thefoliageRadiusrecord component.- Returns:
- the value of the
foliageRadiusrecord component
-
foliageRadiusRand
public int foliageRadiusRand()Returns the value of thefoliageRadiusRandrecord component.- Returns:
- the value of the
foliageRadiusRandrecord component
-
dirtTargets
Returns the value of thedirtTargetsrecord component.- Returns:
- the value of the
dirtTargetsrecord component
-