Class BlockColumnFeature.Builder

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

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

  • Method Details

    • layers

      Sets the layers of the column, replacing any existing layers.
      Parameters:
      layers - the layers
      Returns:
      this builder
      Since:
      3.0.0
    • direction

      @AsOf("3.0.0") public BlockColumnFeature.Builder direction(BlockFace direction)
      Sets the direction the column is built in.
      Parameters:
      direction - the direction
      Returns:
      this builder
      Since:
      3.0.0
    • allowedPlacement

      @AsOf("3.0.0") public BlockColumnFeature.Builder allowedPlacement(BlockPredicate allowedPlacement)
      Sets the block predicate that must be passed for each position of the column.
      Parameters:
      allowedPlacement - the allowed placement predicate
      Returns:
      this builder
      Since:
      3.0.0
    • prioritizeTip

      @AsOf("3.0.0") public BlockColumnFeature.Builder prioritizeTip(boolean prioritizeTip)
      Sets whether layers are removed from the start of the column when space is restricted.
      Parameters:
      prioritizeTip - whether the tip is prioritized
      Returns:
      this builder
      Since:
      3.0.0
    • layers

      @AsOf("3.0.0") public BlockColumnFeature.Builder layers(BlockColumnFeature.Layer... layers)
      Adds one or more layers to the column.
      Parameters:
      layers - the layers to add
      Returns:
      this builder
      Since:
      3.0.0
    • layer

      @AsOf("3.0.0") public BlockColumnFeature.Builder layer(IntProvider height, BlockStateProvider state)
      Adds a single layer to the column.
      Parameters:
      height - the height of the layer
      state - the block state provider used for the layer
      Returns:
      this builder
      Since:
      3.0.0
    • build

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