Interface CherryTrunkPlacer
- All Superinterfaces:
TrunkPlacer, Wrapper
Places a U shape trunk of multiple branches.
- 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 TypeMethodDescriptionThe number of branches between 1 and 3.The offset of the branches from the top between -16 and 16.The horizontal length of the branches between 2 and 16.The offset of the branches from the top between -16 and 16.static CherryTrunkPlacer.Builderbuilder()Creates a new builder.static CherryTrunkPlacerof(int baseHeight, int heightRandA, int heightRandB, IntProvider branchCount, IntProvider branchHorizontalLength, IntProvider branchStartOffsetFromTop, IntProvider branchEndOffsetFromTop) Creates a new cherry trunk placer.default CherryTrunkPlacer.BuilderConverts this object back to a builder.Methods inherited from interface TrunkPlacer
baseHeight, heightRandA, heightRandBMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
branchCount
The number of branches between 1 and 3.- Returns:
- the number of branches
- Since:
- 3.0.0
-
branchHorizontalLength
The horizontal length of the branches between 2 and 16.- Returns:
- the horizontal length of the branches
- Since:
- 3.0.0
-
branchStartOffsetFromTop
The offset of the branches from the top between -16 and 16.- Returns:
- the offset of the branches
- Since:
- 3.0.0
-
branchEndOffsetFromTop
The offset of the branches from the top between -16 and 16.- Returns:
- the offset of the branches
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static CherryTrunkPlacer of(int baseHeight, int heightRandA, int heightRandB, IntProvider branchCount, IntProvider branchHorizontalLength, IntProvider branchStartOffsetFromTop, IntProvider branchEndOffsetFromTop) Creates a new cherry trunk placer.- Parameters:
baseHeight- the base height of the trunkheightRandA- the random height modifierheightRandB- the random height modifierbranchCount- the number of branchesbranchHorizontalLength- the horizontal length of the branchesbranchStartOffsetFromTop- the offset of the branches from the topbranchEndOffsetFromTop- the offset of the branches from the top- Returns:
- a new cherry trunk placer
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-