Interface LayerConfiguration

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface LayerConfiguration extends FeatureConfiguration
A technical feature that fills all air blocks in a 16×1×16 layer with a specified block. Used in vanilla in superflat worlds.
Since:
3.0.0
See Also:
  • Method Details

    • height

      @AsOf("3.0.0") int height()
      The layer to fill, starting at the bottom of the world between 0 and 4064.
      Returns:
      the layer to fill
      Since:
      3.0.0
    • state

      @AsOf("3.0.0") BlockData state()
      The block to fill the layer with.
      Returns:
      the block data to fill the layer with
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default LayerConfiguration.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 LayerConfiguration of(int height, BlockData state)
      Creates a new layer configuration.
      Parameters:
      height - the layer to fill, starting at the bottom of the world between 0 and 4064
      state - the block to fill the layer with
      Returns:
      a new layer configuration
      Since:
      3.0.0
    • builder

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