Class RandomOffsetPlacement.Builder

java.lang.Object
dev.wyck.worldgen.placement.RandomOffsetPlacement.Builder
Enclosing interface:
RandomOffsetPlacement

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

  • Method Details

    • xzSpread

      @AsOf("3.0.0") public RandomOffsetPlacement.Builder xzSpread(IntProvider xzSpread)
      Sets the horizontal spread provider.
      Parameters:
      xzSpread - the offset applied to both the X and Z axes, between -16 and 16 (inclusive)
      Returns:
      this builder
      Since:
      3.0.0
    • ySpread

      @AsOf("3.0.0") public RandomOffsetPlacement.Builder ySpread(IntProvider ySpread)
      Sets the vertical spread provider.
      Parameters:
      ySpread - the offset applied to the Y axis, between -16 and 16 (inclusive)
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public RandomOffsetPlacement build()
      Builds the random offset placement.
      Returns:
      the random offset placement
      Since:
      3.0.0