Class UpwardsBranchingTrunkPlacer.Builder
java.lang.Object
dev.wyck.worldgen.feature.trunkplacers.TrunkPlacer.TrunkPlacerBuilder<UpwardsBranchingTrunkPlacer.Builder, UpwardsBranchingTrunkPlacer>
dev.wyck.worldgen.feature.trunkplacers.UpwardsBranchingTrunkPlacer.Builder
- Enclosing interface:
UpwardsBranchingTrunkPlacer
@AsOf("3.0.0")
public static final class UpwardsBranchingTrunkPlacer.Builder
extends TrunkPlacer.TrunkPlacerBuilder<UpwardsBranchingTrunkPlacer.Builder, UpwardsBranchingTrunkPlacer>
Builder for
UpwardsBranchingTrunkPlacer.- Since:
- 3.0.0
-
Field Summary
Fields inherited from class TrunkPlacer.TrunkPlacerBuilder
baseHeight, heightRandA, heightRandB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanGrowThrough(Set<Material> canGrowThrough) Sets the blocks that tree trunks can grow through.canGrowThrough(Material... canGrowThrough) Adds blocks that tree trunks can grow through.protected UpwardsBranchingTrunkPlacercreate()extraBranchLength(IntProvider extraBranchLength) Sets the extra branch length.extraBranchSteps(IntProvider extraBranchSteps) Sets the number of steps to generate extra branches.placeBranchPerLogProbability(float placeBranchPerLogProbability) Sets the probability of each log producing a branch.Methods inherited from class TrunkPlacer.TrunkPlacerBuilder
baseHeight, build, heightRandA, heightRandB
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
extraBranchSteps
@AsOf("3.0.0") public UpwardsBranchingTrunkPlacer.Builder extraBranchSteps(IntProvider extraBranchSteps) Sets the number of steps to generate extra branches.- Parameters:
extraBranchSteps- the number of steps to generate extra branches- Returns:
- this builder
- Since:
- 3.0.0
-
placeBranchPerLogProbability
@AsOf("3.0.0") public UpwardsBranchingTrunkPlacer.Builder placeBranchPerLogProbability(float placeBranchPerLogProbability) Sets the probability of each log producing a branch.- Parameters:
placeBranchPerLogProbability- the probability of each log producing a branch- Returns:
- this builder
- Since:
- 3.0.0
-
extraBranchLength
@AsOf("3.0.0") public UpwardsBranchingTrunkPlacer.Builder extraBranchLength(IntProvider extraBranchLength) Sets the extra branch length.- Parameters:
extraBranchLength- the extra branch length- Returns:
- this builder
- Since:
- 3.0.0
-
canGrowThrough
@AsOf("3.0.0") public UpwardsBranchingTrunkPlacer.Builder canGrowThrough(Set<Material> canGrowThrough) Sets the blocks that tree trunks can grow through.- Parameters:
canGrowThrough- the blocks that tree trunks can grow through- Returns:
- this builder
- Since:
- 3.0.0
-
canGrowThrough
@AsOf("3.0.0") public UpwardsBranchingTrunkPlacer.Builder canGrowThrough(Material... canGrowThrough) Adds blocks that tree trunks can grow through.- Parameters:
canGrowThrough- the blocks that tree trunks can grow through- Returns:
- this builder
- Since:
- 3.0.0
-
create
- Specified by:
createin classTrunkPlacer.TrunkPlacerBuilder<UpwardsBranchingTrunkPlacer.Builder, UpwardsBranchingTrunkPlacer>
-