Class DiskConfiguration.Builder

java.lang.Object
dev.wyck.worldgen.feature.configurations.DiskConfiguration.Builder
Enclosing interface:
DiskConfiguration

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

    • Builder

      public Builder()
    • Builder

      public Builder(DiskConfiguration configuration)
  • Method Details

    • stateProvider

      @AsOf("3.0.0") public DiskConfiguration.Builder stateProvider(BlockStateProvider stateProvider)
      Sets the block state provider used for the blocks that make up the disk.
      Parameters:
      stateProvider - the state provider
      Returns:
      this builder
      Since:
      3.0.0
    • target

      @AsOf("3.0.0") public DiskConfiguration.Builder target(BlockPredicate target)
      Sets the block predicate that must be passed for a block to be replaced.
      Parameters:
      target - the target predicate
      Returns:
      this builder
      Since:
      3.0.0
    • radius

      @AsOf("3.0.0") public DiskConfiguration.Builder radius(IntProvider radius)
      Sets the radius of this disk.
      Parameters:
      radius - the radius
      Returns:
      this builder
      Since:
      3.0.0
    • halfHeight

      @AsOf("3.0.0") public DiskConfiguration.Builder halfHeight(int halfHeight)
      Sets half of the height of this disk.
      Parameters:
      halfHeight - the half height
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public DiskConfiguration build()
      Builds the configuration.
      Returns:
      the configuration
      Since:
      3.0.0