Class CherryFoliagePlacer.Builder
java.lang.Object
dev.wyck.worldgen.feature.foliageplacers.FoliagePlacer.FoliagePlacerBuilder<CherryFoliagePlacer.Builder, CherryFoliagePlacer>
dev.wyck.worldgen.feature.foliageplacers.CherryFoliagePlacer.Builder
- Enclosing interface:
CherryFoliagePlacer
@AsOf("3.0.0")
public static final class CherryFoliagePlacer.Builder
extends FoliagePlacer.FoliagePlacerBuilder<CherryFoliagePlacer.Builder, CherryFoliagePlacer>
Builder for
CherryFoliagePlacer.- Since:
- 3.0.0
-
Field Summary
Fields inherited from class FoliagePlacer.FoliagePlacerBuilder
offset, radius -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncornerHoleChance(float cornerHoleChance) Sets the probability of a hole in the corners, between 0.0F and 1.0F (inclusive).protected CherryFoliagePlacercreate()hangingLeavesChance(float hangingLeavesChance) Sets the probability of generating hanging leaves, between 0.0F and 1.0F (inclusive).hangingLeavesExtensionChance(float hangingLeavesExtensionChance) Sets the probability of extending hanging leaves, between 0.0F and 1.0F (inclusive).height(IntProvider height) Sets the foliage's height, between 4 and 16 (inclusive).wideBottomLayerHoleChance(float wideBottomLayerHoleChance) Sets the probability of a hole in the wide bottom layer, between 0.0F and 1.0F (inclusive).Methods inherited from class FoliagePlacer.FoliagePlacerBuilder
build, offset, radius
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
height
Sets the foliage's height, between 4 and 16 (inclusive).- Parameters:
height- the height- Returns:
- this builder
- Since:
- 3.0.0
-
wideBottomLayerHoleChance
@AsOf("3.0.0") public CherryFoliagePlacer.Builder wideBottomLayerHoleChance(float wideBottomLayerHoleChance) Sets the probability of a hole in the wide bottom layer, between 0.0F and 1.0F (inclusive).- Parameters:
wideBottomLayerHoleChance- the wide bottom layer hole chance- Returns:
- this builder
- Since:
- 3.0.0
-
cornerHoleChance
Sets the probability of a hole in the corners, between 0.0F and 1.0F (inclusive).- Parameters:
cornerHoleChance- the corner hole chance- Returns:
- this builder
- Since:
- 3.0.0
-
hangingLeavesChance
Sets the probability of generating hanging leaves, between 0.0F and 1.0F (inclusive).- Parameters:
hangingLeavesChance- the hanging leaves chance- Returns:
- this builder
- Since:
- 3.0.0
-
hangingLeavesExtensionChance
@AsOf("3.0.0") public CherryFoliagePlacer.Builder hangingLeavesExtensionChance(float hangingLeavesExtensionChance) Sets the probability of extending hanging leaves, between 0.0F and 1.0F (inclusive).- Parameters:
hangingLeavesExtensionChance- the hanging leaves extension chance- Returns:
- this builder
- Since:
- 3.0.0
-
create
- Specified by:
createin classFoliagePlacer.FoliagePlacerBuilder<CherryFoliagePlacer.Builder, CherryFoliagePlacer>
-