Class TreeConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.TreeConfiguration.Builder
- Enclosing interface:
TreeConfiguration
Builder for
TreeConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbelowTrunkProvider(BlockStateProvider belowTrunkProvider) Sets the below trunk provider.build()Builds the tree configuration.decorator(TreeDecorator... decorators) Adds a decorator to the list of decorators.decorators(List<TreeDecorator> decorators) Sets the decorators.foliagePlacer(FoliagePlacer foliagePlacer) Sets the foliage placer.foliageProvider(BlockStateProvider foliageProvider) Sets the foliage provider.Sets the tree to ignore vines.ignoreVines(boolean ignoreVines) Sets whether to ignore vines.minimumSize(FeatureSize minimumSize) Sets the minimum size.rootPlacer(@Nullable RootPlacer rootPlacer) Sets the root placer.trunkPlacer(TrunkPlacer trunkPlacer) Sets the trunk placer.trunkProvider(BlockStateProvider trunkProvider) Sets the trunk provider.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
trunkProvider
Sets the trunk provider.- Parameters:
trunkProvider- the trunk provider- Returns:
- this builder
- Since:
- 3.0.0
-
trunkPlacer
Sets the trunk placer.- Parameters:
trunkPlacer- the trunk placer- Returns:
- this builder
- Since:
- 3.0.0
-
foliageProvider
Sets the foliage provider.- Parameters:
foliageProvider- the foliage provider- Returns:
- this builder
- Since:
- 3.0.0
-
foliagePlacer
Sets the foliage placer.- Parameters:
foliagePlacer- the foliage placer- Returns:
- this builder
- Since:
- 3.0.0
-
rootPlacer
Sets the root placer.- Parameters:
rootPlacer- the root placer- Returns:
- this builder
- Since:
- 3.0.0
-
minimumSize
Sets the minimum size.- Parameters:
minimumSize- the minimum size- Returns:
- this builder
- Since:
- 3.0.0
-
decorators
Sets the decorators.- Parameters:
decorators- the decorators- Returns:
- this builder
- Since:
- 3.0.0
-
ignoreVines
Sets whether to ignore vines.- Parameters:
ignoreVines- whether to ignore vines- Returns:
- this builder
- Since:
- 3.0.0
-
belowTrunkProvider
@AsOf("3.0.0") public TreeConfiguration.Builder belowTrunkProvider(BlockStateProvider belowTrunkProvider) Sets the below trunk provider.- Parameters:
belowTrunkProvider- the below trunk provider- Returns:
- this builder
- Since:
- 3.0.0
-
decorator
Adds a decorator to the list of decorators.- Parameters:
decorators- the decorators to add- Returns:
- this builder
- Since:
- 3.0.0
-
ignoreVines
Sets the tree to ignore vines.- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the tree configuration.- Returns:
- the tree configuration
- Since:
- 3.0.0
-