Class PoplarTrunkPlacer.Builder
java.lang.Object
dev.wyck.worldgen.feature.trunkplacers.TrunkPlacer.TrunkPlacerBuilder<PoplarTrunkPlacer.Builder, PoplarTrunkPlacer>
dev.wyck.worldgen.feature.trunkplacers.PoplarTrunkPlacer.Builder
- Enclosing interface:
PoplarTrunkPlacer
@AsOf("4.0.0")
public static final class PoplarTrunkPlacer.Builder
extends TrunkPlacer.TrunkPlacerBuilder<PoplarTrunkPlacer.Builder, PoplarTrunkPlacer>
Builder for
PoplarTrunkPlacer.- Since:
- 4.0.0
-
Field Summary
Fields inherited from class TrunkPlacer.TrunkPlacerBuilder
baseHeight, heightRandA, heightRandB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranchAmount(IntProvider branchAmount) Sets the number of horizontal branches.protected PoplarTrunkPlacercreate()trunkHeightAboveBranches(IntProvider trunkHeightAboveBranches) Sets the trunk height above branches.Methods inherited from class TrunkPlacer.TrunkPlacerBuilder
baseHeight, build, heightRandA, heightRandB
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
trunkHeightAboveBranches
@AsOf("4.0.0") public PoplarTrunkPlacer.Builder trunkHeightAboveBranches(IntProvider trunkHeightAboveBranches) Sets the trunk height above branches.- Parameters:
trunkHeightAboveBranches- the height, between 0 and 8- Returns:
- this builder
- Since:
- 4.0.0
-
branchAmount
Sets the number of horizontal branches.- Parameters:
branchAmount- the number of branches, between 1 and 4- Returns:
- this builder
- Since:
- 4.0.0
-
create
- Specified by:
createin classTrunkPlacer.TrunkPlacerBuilder<PoplarTrunkPlacer.Builder, PoplarTrunkPlacer>
-