Interface ComposedCarver

All Superinterfaces:
ConfiguredWorldCarver, Keyed, Registerable<ComposedCarver>, Wrapper

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

    • resourceKey

      Optional<ResourceKey> resourceKey()
      The resource key of the carver.
      Returns:
      the resource key of the carver
      Since:
      3.0.0
    • type

      @AsOf("3.0.0") WorldCarverType type()
      The type of the carver.
      Returns:
      the type of the carver
      Since:
      3.0.0
    • config

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

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

      @AsOf("3.0.0") static ComposedCarver of(@Nullable ResourceKey resourceKey, WorldCarverType type, CarverConfiguration config)
      Creates a new composed carver.
      Parameters:
      resourceKey - the resource key of the carver, or null if not present
      type - the type of the carver
      config - the configuration of the carver
      Returns:
      a new composed carver
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ComposedCarver of(WorldCarverType type, CarverConfiguration config)
      Creates a new composed carver.
      Parameters:
      type - the type of the carver
      config - the configuration of the carver
      Returns:
      a new composed carver
      Since:
      3.0.0
    • builder

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

      @AsOf("3.0.0") static ComposedCarver.Builder cave()
      Creates a new builder for a cave carver.
      Returns:
      a new builder for a cave carver
      Since:
      3.0.0
    • netherCave

      @AsOf("3.0.0") static ComposedCarver.Builder netherCave()
      Creates a new builder for a nether cave carver.
      Returns:
      a new builder for a nether cave carver
      Since:
      3.0.0
    • canyon

      @AsOf("3.0.0") static ComposedCarver.Builder canyon()
      Creates a new builder for a canyon carver.
      Returns:
      a new builder for a canyon carver
      Since:
      3.0.0