Interface PoplarTrunkPlacer
- All Superinterfaces:
TrunkPlacer, Wrapper
Places a poplar trunk with horizontal branches near the top.
- Since:
- 4.0.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface TrunkPlacer
TrunkPlacer.TrunkPlacerBuilder<T,P> -
Field Summary
Fields inherited from interface TrunkPlacer
MAX_BASE_HEIGHT, MAX_RAND -
Method Summary
Modifier and TypeMethodDescriptionThe number of horizontal branches, between 1 and 4.static PoplarTrunkPlacer.Builderbuilder()Creates a new builder.static PoplarTrunkPlacerof(int baseHeight, int heightRandA, int heightRandB, IntProvider trunkHeightAboveBranches, IntProvider branchAmount) Creates a poplar trunk placer.default PoplarTrunkPlacer.BuilderConverts this object back to a builder.The number of trunk blocks above the branch layer.Methods inherited from interface TrunkPlacer
baseHeight, heightRandA, heightRandBMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
trunkHeightAboveBranches
The number of trunk blocks above the branch layer.- Returns:
- the trunk height above branches
- Since:
- 4.0.0
-
branchAmount
The number of horizontal branches, between 1 and 4.- Returns:
- the branch amount
- Since:
- 4.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder containing the same values
- Since:
- 4.0.0
-
of
@AsOf("4.0.0") static PoplarTrunkPlacer of(int baseHeight, int heightRandA, int heightRandB, IntProvider trunkHeightAboveBranches, IntProvider branchAmount) Creates a poplar trunk placer.- Parameters:
baseHeight- the base trunk heightheightRandA- the first random height boundheightRandB- the second random height boundtrunkHeightAboveBranches- the trunk height above branches, between 0 and 8branchAmount- the number of branches, between 1 and 4- Returns:
- a new poplar trunk placer
- Since:
- 4.0.0
-
builder
Creates a new builder.- Returns:
- a new poplar trunk placer builder
- Since:
- 4.0.0
-