Interface FancyTrunkPlacer
- All Superinterfaces:
TrunkPlacer, Wrapper
Places a straight trunk of
(height + 2) * 0.618 and branches in random directions.
Foliage is attached to the end of all branches that are at least 20% up the tree.- Since:
- 3.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 TypeMethodDescriptionstatic FancyTrunkPlacer.Builderbuilder()Creates a new builder.static FancyTrunkPlacerof(int baseHeight, int heightRandA, int heightRandB) Creates a new fancy trunk placer.default FancyTrunkPlacer.BuilderConverts this object back to a builder.Methods inherited from interface TrunkPlacer
baseHeight, heightRandA, heightRandBMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
toBuilder
Converts this object back to a builder.- Returns:
- the builder
- Since:
- 3.0.0
-
of
Creates a new fancy trunk placer.- Parameters:
baseHeight- the height of the trunkheightRandA- the random height modifierheightRandB- the random height modifier- Returns:
- a new fancy trunk placer
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-