Class CherryTrunkPlacer.Builder
java.lang.Object
dev.wyck.worldgen.feature.trunkplacers.TrunkPlacer.TrunkPlacerBuilder<CherryTrunkPlacer.Builder, CherryTrunkPlacer>
dev.wyck.worldgen.feature.trunkplacers.CherryTrunkPlacer.Builder
- Enclosing interface:
CherryTrunkPlacer
@AsOf("3.0.0")
public static final class CherryTrunkPlacer.Builder
extends TrunkPlacer.TrunkPlacerBuilder<CherryTrunkPlacer.Builder, CherryTrunkPlacer>
Builder for
CherryTrunkPlacer.- Since:
- 3.0.0
-
Field Summary
Fields inherited from class TrunkPlacer.TrunkPlacerBuilder
baseHeight, heightRandA, heightRandB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranchCount(IntProvider branchCount) Sets the number of branches.branchEndOffsetFromTop(IntProvider branchEndOffsetFromTop) Sets the offset of the branches from the top.branchHorizontalLength(IntProvider branchHorizontalLength) Sets the horizontal length of the branches.branchStartOffsetFromTop(UniformInt branchStartOffsetFromTop) Sets the offset of the branches from the top.protected CherryTrunkPlacercreate()Methods inherited from class TrunkPlacer.TrunkPlacerBuilder
baseHeight, build, heightRandA, heightRandB
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
branchCount
Sets the number of branches.- Parameters:
branchCount- the number of branches- Returns:
- this builder
- Since:
- 3.0.0
-
branchHorizontalLength
@AsOf("3.0.0") public CherryTrunkPlacer.Builder branchHorizontalLength(IntProvider branchHorizontalLength) Sets the horizontal length of the branches.- Parameters:
branchHorizontalLength- the horizontal length of the branches- Returns:
- this builder
- Since:
- 3.0.0
-
branchStartOffsetFromTop
@AsOf("3.0.0") public CherryTrunkPlacer.Builder branchStartOffsetFromTop(UniformInt branchStartOffsetFromTop) Sets the offset of the branches from the top.- Parameters:
branchStartOffsetFromTop- the offset of the branches from the top- Returns:
- this builder
- Since:
- 3.0.0
-
branchEndOffsetFromTop
@AsOf("3.0.0") public CherryTrunkPlacer.Builder branchEndOffsetFromTop(IntProvider branchEndOffsetFromTop) Sets the offset of the branches from the top.- Parameters:
branchEndOffsetFromTop- the offset of the branches from the top- Returns:
- this builder
- Since:
- 3.0.0
-
create
- Specified by:
createin classTrunkPlacer.TrunkPlacerBuilder<CherryTrunkPlacer.Builder, CherryTrunkPlacer>
-