Class CustomComposedFeature.Builder<C>

java.lang.Object
dev.wyck.worldgen.feature.types.CustomComposedFeature.Builder<C>
Type Parameters:
C - the configuration type
Enclosing interface:
CustomComposedFeature<C>

@AsOf("3.0.0") public static final class CustomComposedFeature.Builder<C> extends Object
Since:
3.0.0
  • Constructor Details

  • Method Details

    • resourceKey

      @AsOf("3.0.0") public CustomComposedFeature.Builder<C> 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
    • feature

      @AsOf("3.0.0") public CustomComposedFeature.Builder<C> feature(CustomFeature<C> feature)
      Sets the custom feature.
      Parameters:
      feature - the custom feature
      Returns:
      this builder
      Since:
      3.0.0
    • config

      @AsOf("3.0.0") public CustomComposedFeature.Builder<C> config(C config)
      Sets the configuration instance carried to the custom feature.
      Parameters:
      config - the configuration instance
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public CustomComposedFeature<C> build()
      Builds the custom composed configured feature.
      Returns:
      the custom composed configured feature
      Since:
      3.0.0