Class HugeMushroomFeatureConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.HugeMushroomFeatureConfiguration.Builder
- Enclosing interface:
HugeMushroomFeatureConfiguration
Builder for
HugeMushroomFeatureConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.canPlaceOn(BlockPredicate canPlaceOn) Sets the predicate that defines which blocks the mushroom can be placed on.capProvider(BlockStateProvider capProvider) Sets the block state provider for the cap.foliageRadius(int foliageRadius) Sets the radius of the cap.stemProvider(BlockStateProvider stemProvider) Sets the block state provider for the stem.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
capProvider
@AsOf("3.0.0") public HugeMushroomFeatureConfiguration.Builder capProvider(BlockStateProvider capProvider) Sets the block state provider for the cap.- Parameters:
capProvider- the block state provider for the cap- Returns:
- this builder
- Since:
- 3.0.0
-
stemProvider
@AsOf("3.0.0") public HugeMushroomFeatureConfiguration.Builder stemProvider(BlockStateProvider stemProvider) Sets the block state provider for the stem.- Parameters:
stemProvider- the block state provider for the stem- Returns:
- this builder
- Since:
- 3.0.0
-
foliageRadius
Sets the radius of the cap.- Parameters:
foliageRadius- the radius of the cap- Returns:
- this builder
- Since:
- 3.0.0
-
canPlaceOn
@AsOf("3.0.0") public HugeMushroomFeatureConfiguration.Builder canPlaceOn(BlockPredicate canPlaceOn) Sets the predicate that defines which blocks the mushroom can be placed on.- Parameters:
canPlaceOn- the predicate that defines which blocks the mushroom can be placed on- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-