Class TemplateFeature.Builder

java.lang.Object
dev.wyck.worldgen.feature.configurations.TemplateFeature.Builder
Enclosing interface:
TemplateFeature

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

    • Builder

      public Builder()
    • Builder

      public Builder(TemplateFeature configuration)
  • Method Details

    • template

      @AsOf("3.0.1") public TemplateFeature.Builder template(TemplateFeature.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 TemplateFeature.Builder template(TemplateFeature.TemplateEntry template, int weight)
      Adds a template entry with the given weight.
      Parameters:
      template - the template entry to add
      weight - the weight of the template entry
      Returns:
      this builder
      Since:
      3.0.1
    • build

      @AsOf("3.0.1") public TemplateFeature build()
      Builds the template feature configuration.
      Returns:
      the template feature configuration
      Since:
      3.0.1