Class ComposedConfiguredFeature.Builder
java.lang.Object
dev.wyck.worldgen.feature.types.ComposedConfiguredFeature.Builder
- Enclosing interface:
ComposedConfiguredFeature
Builder for
ComposedConfiguredFeature.- Since:
- 3.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Builder(FeatureType type) Builder(ComposedConfiguredFeature feature) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the composed configured feature.config(FeatureConfiguration config) Sets the configuration for the feature type.resourceKey(ResourceKey resourceKey) Sets the resource key of the configured feature.type(FeatureType type) Sets the built-in feature type.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
Builder
-
-
Method Details
-
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
Sets the built-in feature type.- Parameters:
type- the feature type- Returns:
- this builder
- Since:
- 3.0.0
-
config
Sets the configuration for the feature type.- Parameters:
config- the feature configuration- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the composed configured feature.- Returns:
- the composed configured feature
- Since:
- 3.0.0
-