Class AttachedToLeavesDecorator.Builder

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

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

  • Method Details

    • probability

      @AsOf("3.0.0") public AttachedToLeavesDecorator.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
    • exclusionRadiusXZ

      @AsOf("3.0.0") public AttachedToLeavesDecorator.Builder exclusionRadiusXZ(int exclusionRadiusXZ)
      Sets the minimum horizontal distance between two decorations, between 0 and 16 (inclusive).
      Parameters:
      exclusionRadiusXZ - the horizontal exclusion radius
      Returns:
      this builder
      Since:
      3.0.0
    • exclusionRadiusY

      @AsOf("3.0.0") public AttachedToLeavesDecorator.Builder exclusionRadiusY(int exclusionRadiusY)
      Sets the minimum vertical distance between two decorations, between 0 and 16 (inclusive).
      Parameters:
      exclusionRadiusY - the vertical exclusion radius
      Returns:
      this builder
      Since:
      3.0.0
    • blockProvider

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

      @AsOf("3.0.0") public AttachedToLeavesDecorator.Builder requiredEmptyBlocks(int requiredEmptyBlocks)
      Sets the number of empty blocks required by the decoration, between 0 and 16 (inclusive).
      Parameters:
      requiredEmptyBlocks - the number of required empty blocks
      Returns:
      this builder
      Since:
      3.0.0
    • directions

      @AsOf("3.0.0") public AttachedToLeavesDecorator.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 AttachedToLeavesDecorator.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 AttachedToLeavesDecorator build()
      Builds the attached to leaves decorator.
      Returns:
      a new attached to leaves decorator
      Since:
      3.0.0