Interface BlockColumnConfiguration

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface BlockColumnConfiguration extends FeatureConfiguration
A feature that consists of glow berries, found in lush caves.
Since:
3.0.0
See Also:
  • Field Details

  • Method Details

    • layers

      The layers of this column.
      Returns:
      an immutable list of layers
      Since:
      3.0.0
    • direction

      @AsOf("3.0.0") BlockFace direction()
      The direction the column is built in.
      Returns:
      the direction
      Since:
      3.0.0
    • allowedPlacement

      @AsOf("3.0.0") BlockPredicate allowedPlacement()
      The block predicate that must be passed for each position of the column.
      Returns:
      the allowed placement predicate
      Since:
      3.0.0
    • prioritizeTip

      @AsOf("3.0.0") boolean prioritizeTip()
      Determines where to cut off blocks when space is restricted. If true, layers are removed from the start of the column.
      Returns:
      whether the tip is prioritized
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default BlockColumnConfiguration.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static BlockColumnConfiguration of(List<BlockColumnConfiguration.Layer> layers, BlockFace direction, BlockPredicate allowedPlacement, boolean prioritizeTip)
      Creates a new block column configuration.
      Parameters:
      layers - the layers of the column
      direction - the direction the column is built in
      allowedPlacement - the block predicate that must be passed for each position of the column
      prioritizeTip - whether layers are removed from the start of the column when space is restricted
      Returns:
      a new block column configuration
      Since:
      3.0.0
    • layer

      @AsOf("3.0.0") static BlockColumnConfiguration.Layer layer(IntProvider height, BlockStateProvider state)
      Creates a new layer for a block column.
      Parameters:
      height - the height of the layer
      state - the block state provider used for the layer
      Returns:
      a new layer
      Since:
      3.0.0
    • simple

      @AsOf("3.0.0") static BlockColumnConfiguration simple(IntProvider height, BlockStateProvider state)
      Creates a block column configuration consisting of a single layer.
      Parameters:
      height - the height of the layer
      state - the block state provider used for the layer
      Returns:
      a new block column configuration
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static BlockColumnConfiguration.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0