Class TemplateFeatureConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.TemplateFeatureConfiguration.Builder
- Enclosing interface:
TemplateFeatureConfiguration
Builder for
TemplateFeatureConfiguration.- Since:
- 3.0.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the template feature configuration.Adds a template entry with a weight of 1.template(TemplateFeatureConfiguration.TemplateEntry template, int weight) Adds a template entry with the given weight.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
template
@AsOf("3.0.1") public TemplateFeatureConfiguration.Builder template(TemplateFeatureConfiguration.TemplateEntry template) Adds a template entry with a weight of 1.- Parameters:
template- the template entry to add- Returns:
- this builder
- Since:
- 3.0.1
-
template
@AsOf("3.0.1") public TemplateFeatureConfiguration.Builder template(TemplateFeatureConfiguration.TemplateEntry template, int weight) Adds a template entry with the given weight.- Parameters:
template- the template entry to addweight- the weight of the template entry- Returns:
- this builder
- Since:
- 3.0.1
-
build
Builds the template feature configuration.- Returns:
- the template feature configuration
- Since:
- 3.0.1
-