Interface AttachedToLogsDecorator
- All Superinterfaces:
TreeDecorator, Wrapper
Attaches blocks to exposed faces of all trunk 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.static AttachedToLogsDecoratorof(float probability, BlockStateProvider blockProvider, List<BlockFace> directions) Creates a new attached to logs decorator.floatThe probability of attaching a block, between 0.0F and 1.0F (inclusive).default AttachedToLogsDecorator.BuilderConverts 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
-
blockProvider
The block of the decoration.- Returns:
- the block state provider
- 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 AttachedToLogsDecorator of(float probability, BlockStateProvider blockProvider, List<BlockFace> directions) Creates a new attached to logs decorator.- Parameters:
probability- the probability of attaching a block, between 0.0F and 1.0F (inclusive)blockProvider- the block of the decorationdirections- the directions to generate, cannot be empty- Returns:
- a new attached to logs decorator
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-