Class AttachedToLogsDecorator.Builder

java.lang.Object
dev.wyck.worldgen.feature.treedecorators.AttachedToLogsDecorator.Builder
Enclosing interface:
AttachedToLogsDecorator

@AsOf("3.0.0") public static final class AttachedToLogsDecorator.Builder extends Object
Since:
3.0.0
  • Constructor Details

  • Method Details

    • probability

      @AsOf("3.0.0") public AttachedToLogsDecorator.Builder probability(float probability)
      Sets the probability of attaching a block, between 0.0F and 1.0F (inclusive).
      Parameters:
      probability - the probability
      Returns:
      this builder
      Since:
      3.0.0
    • blockProvider

      @AsOf("3.0.0") public AttachedToLogsDecorator.Builder blockProvider(BlockStateProvider blockProvider)
      Sets the block of the decoration.
      Parameters:
      blockProvider - the block state provider
      Returns:
      this builder
      Since:
      3.0.0
    • directions

      @AsOf("3.0.0") public AttachedToLogsDecorator.Builder directions(List<BlockFace> directions)
      Sets the directions to generate. Cannot be empty.
      Parameters:
      directions - the directions
      Returns:
      this builder
      Since:
      3.0.0
    • direction

      @AsOf("3.0.0") public AttachedToLogsDecorator.Builder direction(BlockFace... direction)
      Adds one or more directions to generate.
      Parameters:
      direction - the directions to add
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public AttachedToLogsDecorator build()
      Builds the attached to logs decorator.
      Returns:
      a new attached to logs decorator
      Since:
      3.0.0