Class ComposedFeature.Builder

java.lang.Object
dev.wyck.worldgen.feature.types.ComposedFeature.Builder
Enclosing interface:
ComposedFeature

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

  • Method Details

    • resourceKey

      @AsOf("3.0.0") public ComposedFeature.Builder resourceKey(ResourceKey resourceKey)
      Sets the resource key of the configured feature.
      Parameters:
      resourceKey - the resource key of the configured feature
      Returns:
      this builder
      Since:
      3.0.0
    • type

      @AsOf("3.0.0") public ComposedFeature.Builder type(FeatureType type)
      Sets the built-in feature type.
      Parameters:
      type - the feature type
      Returns:
      this builder
      Since:
      3.0.0
    • config

      @AsOf("3.0.0") public ComposedFeature.Builder config(FeatureConfiguration config)
      Sets the configuration for the feature type.
      Parameters:
      config - the feature configuration
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public ComposedFeature build()
      Builds the composed configured feature.
      Returns:
      the composed configured feature
      Since:
      3.0.0