Interface AttachedToLogsDecorator

All Superinterfaces:
TreeDecorator, Wrapper

@NullMarked @AsOf("3.0.0") public interface AttachedToLogsDecorator extends TreeDecorator
Attaches blocks to exposed faces of all trunk blocks in specified directions.
Since:
3.0.0
See Also:
  • Method Details

    • probability

      @AsOf("3.0.0") float probability()
      The probability of attaching a block, between 0.0F and 1.0F (inclusive).
      Returns:
      the probability
      Since:
      3.0.0
    • blockProvider

      @AsOf("3.0.0") BlockStateProvider blockProvider()
      The block of the decoration.
      Returns:
      the block state provider
      Since:
      3.0.0
    • directions

      @AsOf("3.0.0") List<BlockFace> directions()
      The directions to generate. Cannot be empty.
      Returns:
      the directions
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default AttachedToLogsDecorator.Builder 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 decoration
      directions - the directions to generate, cannot be empty
      Returns:
      a new attached to logs decorator
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static AttachedToLogsDecorator.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0