Class CustomComposedConfiguredFeature.Builder<C>
java.lang.Object
dev.wyck.worldgen.feature.types.CustomComposedConfiguredFeature.Builder<C>
- Type Parameters:
C- the configuration type
- Enclosing interface:
CustomComposedConfiguredFeature<C>
Builder for
CustomComposedConfiguredFeature.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the custom composed configured feature.Sets the configuration instance carried to the custom feature.feature(CustomFeature<C> feature) Sets the custom feature.resourceKey(ResourceKey resourceKey) Sets the resource key of the configured feature.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
resourceKey
@AsOf("3.0.0") public CustomComposedConfiguredFeature.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
Sets the custom feature.- Parameters:
feature- the custom feature- Returns:
- this builder
- Since:
- 3.0.0
-
config
Sets the configuration instance carried to the custom feature.- Parameters:
config- the configuration instance- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the custom composed configured feature.- Returns:
- the custom composed configured feature
- Since:
- 3.0.0
-