Class FallenTreeConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.FallenTreeConfiguration.Builder
- Enclosing interface:
FallenTreeConfiguration
Builder for
FallenTreeConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.logDecorator(TreeDecorator... decorators) Adds one or more decorators to the fallen log.logDecorators(List<TreeDecorator> logDecorators) Sets the decorators applied to the fallen log, replacing any existing log decorators.logLength(IntProvider logLength) Sets the length of the fallen log.stumpDecorator(TreeDecorator... decorators) Adds one or more decorators to the stump.stumpDecorators(List<TreeDecorator> stumpDecorators) Sets the decorators applied to the stump, replacing any existing stump decorators.trunkProvider(BlockStateProvider trunkProvider) Sets the block state provider used for the trunk.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
trunkProvider
@AsOf("3.0.0") public FallenTreeConfiguration.Builder trunkProvider(BlockStateProvider trunkProvider) Sets the block state provider used for the trunk.- Parameters:
trunkProvider- the trunk provider- Returns:
- this builder
- Since:
- 3.0.0
-
logLength
Sets the length of the fallen log.- Parameters:
logLength- the log length- Returns:
- this builder
- Since:
- 3.0.0
-
stumpDecorators
@AsOf("3.0.0") public FallenTreeConfiguration.Builder stumpDecorators(List<TreeDecorator> stumpDecorators) Sets the decorators applied to the stump, replacing any existing stump decorators.- Parameters:
stumpDecorators- the stump decorators- Returns:
- this builder
- Since:
- 3.0.0
-
logDecorators
@AsOf("3.0.0") public FallenTreeConfiguration.Builder logDecorators(List<TreeDecorator> logDecorators) Sets the decorators applied to the fallen log, replacing any existing log decorators.- Parameters:
logDecorators- the log decorators- Returns:
- this builder
- Since:
- 3.0.0
-
stumpDecorator
Adds one or more decorators to the stump.- Parameters:
decorators- the stump decorators to add- Returns:
- this builder
- Since:
- 3.0.0
-
logDecorator
Adds one or more decorators to the fallen log.- Parameters:
decorators- the log decorators to add- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-