Class PoplarFoliagePlacer.Builder
java.lang.Object
dev.wyck.worldgen.feature.foliageplacers.FoliagePlacer.FoliagePlacerBuilder<PoplarFoliagePlacer.Builder, PoplarFoliagePlacer>
dev.wyck.worldgen.feature.foliageplacers.PoplarFoliagePlacer.Builder
- Enclosing interface:
PoplarFoliagePlacer
@AsOf("4.0.0")
public static final class PoplarFoliagePlacer.Builder
extends FoliagePlacer.FoliagePlacerBuilder<PoplarFoliagePlacer.Builder, PoplarFoliagePlacer>
Builder for
PoplarFoliagePlacer.- Since:
- 4.0.0
-
Field Summary
Fields inherited from class FoliagePlacer.FoliagePlacerBuilder
offset, radius -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PoplarFoliagePlacercreate()height(IntProvider height) Sets the foliage height.sideHoleChance(float sideHoleChance) Sets the chance that an eligible side position is left empty.Methods inherited from class FoliagePlacer.FoliagePlacerBuilder
build, offset, radius
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
height
Sets the foliage height.- Parameters:
height- the foliage height, between 5 and 16 blocks- Returns:
- this builder
- Since:
- 4.0.0
-
sideHoleChance
Sets the chance that an eligible side position is left empty.- Parameters:
sideHoleChance- the chance, between 0 and 1- Returns:
- this builder
- Since:
- 4.0.0
-
create
- Specified by:
createin classFoliagePlacer.FoliagePlacerBuilder<PoplarFoliagePlacer.Builder, PoplarFoliagePlacer>
-