Interface CustomComposedCarver<C>

Type Parameters:
C - The configuration type.
All Superinterfaces:
ConfiguredWorldCarver, Keyed, Registerable<CustomComposedCarver<C>>, Wrapper

@NullMarked @AsOf("3.0.0") public interface CustomComposedCarver<C> extends ConfiguredWorldCarver, Registerable<CustomComposedCarver<C>>
A composed carver that uses a custom carver and its configuration.
Since:
3.0.0
  • Method Details

    • carver

      @AsOf("3.0.0") CustomCarver<C> carver()
      The custom carver.
      Returns:
      the custom carver
      Since:
      3.0.0
    • config

      @AsOf("3.0.0") C config()
      The configuration of the custom carver.
      Returns:
      the configuration
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default CustomComposedCarver.Builder<C> toBuilder()
      Converts this composed carver to a builder.
      Returns:
      a builder with the same values as this composed carver
      Since:
      3.0.0
    • register

      @AsOf("3.0.0") default CustomComposedCarver<C> register()
      Registers the custom carver.
      Specified by:
      register in interface Registerable<C>
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static <C> CustomComposedCarver<C> of(CustomCarver<C> carver, C config)
      Creates a new composed carver.
      Type Parameters:
      C - The configuration type.
      Parameters:
      carver - The custom carver.
      config - The configuration of the custom carver.
      Returns:
      A new composed carver.
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static <C> CustomComposedCarver.Builder<C> builder()
      Creates a new builder.
      Type Parameters:
      C - The configuration type
      Returns:
      a new builder
      Since:
      3.0.0