Interface AttachedToLeavesDecorator
- All Superinterfaces:
TreeDecorator, Wrapper
Attaches blocks to exposed faces of all foliage blocks in specified directions.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe block of the decoration.builder()Creates a new builder.The directions to generate.intThe minimum horizontal distance between two decorations, between 0 and 16 (inclusive).intThe minimum vertical distance between two decorations, between 0 and 16 (inclusive).static AttachedToLeavesDecoratorof(float probability, int exclusionRadiusXZ, int exclusionRadiusY, BlockStateProvider blockProvider, int requiredEmptyBlocks, List<BlockFace> directions) Creates a new attached to leaves decorator.floatThe probability of attaching a block, between 0.0F and 1.0F (inclusive).intThe number of empty blocks required by the decoration, between 0 and 16 (inclusive).Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
probability
The probability of attaching a block, between 0.0F and 1.0F (inclusive).- Returns:
- the probability
- Since:
- 3.0.0
-
exclusionRadiusXZ
The minimum horizontal distance between two decorations, between 0 and 16 (inclusive).- Returns:
- the horizontal exclusion radius
- Since:
- 3.0.0
-
exclusionRadiusY
The minimum vertical distance between two decorations, between 0 and 16 (inclusive).- Returns:
- the vertical exclusion radius
- Since:
- 3.0.0
-
blockProvider
The block of the decoration.- Returns:
- the block state provider
- Since:
- 3.0.0
-
requiredEmptyBlocks
The number of empty blocks required by the decoration, between 0 and 16 (inclusive).- Returns:
- the number of required empty blocks
- Since:
- 3.0.0
-
directions
-
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 AttachedToLeavesDecorator of(float probability, int exclusionRadiusXZ, int exclusionRadiusY, BlockStateProvider blockProvider, int requiredEmptyBlocks, List<BlockFace> directions) Creates a new attached to leaves decorator.- Parameters:
probability- the probability of attaching a block, between 0.0F and 1.0F (inclusive)exclusionRadiusXZ- the minimum horizontal distance between two decorations, between 0 and 16 (inclusive)exclusionRadiusY- the minimum vertical distance between two decorations, between 0 and 16 (inclusive)blockProvider- the block of the decorationrequiredEmptyBlocks- the number of empty blocks required by the decoration, between 0 and 16 (inclusive)directions- the directions to generate, cannot be empty- Returns:
- a new attached to leaves decorator
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-