Class PlaceOnGroundDecorator.Builder

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

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

  • Method Details

    • tries

      @AsOf("3.0.0") public PlaceOnGroundDecorator.Builder tries(int tries)
      Sets the number of positions to try. Must be a positive integer. Defaults to 128.
      Parameters:
      tries - the number of tries
      Returns:
      this builder
      Since:
      3.0.0
    • radius

      @AsOf("3.0.0") public PlaceOnGroundDecorator.Builder radius(int radius)
      Sets the radius within which to try positions. Must be a non-negative integer. Defaults to 2.
      Parameters:
      radius - the radius
      Returns:
      this builder
      Since:
      3.0.0
    • height

      @AsOf("3.0.0") public PlaceOnGroundDecorator.Builder height(int height)
      Sets the height range within which to try positions. Must be a non-negative integer. Defaults to 1.
      Parameters:
      height - the height
      Returns:
      this builder
      Since:
      3.0.0
    • blockStateProvider

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

      @AsOf("3.0.0") public PlaceOnGroundDecorator build()
      Builds the place on ground decorator.
      Returns:
      a new place on ground decorator
      Since:
      3.0.0