Class PlacedFeature.Builder

java.lang.Object
dev.wyck.worldgen.placement.PlacedFeature.Builder
Enclosing interface:
PlacedFeature

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

    • Builder

      public Builder()
    • Builder

      public Builder(PlacedFeature feature)
  • Method Details

    • feature

      @AsOf("2.3.0") public PlacedFeature.Builder feature(ConfiguredFeature feature)
      Sets the feature to be placed.
      Parameters:
      feature - the feature to be placed
      Returns:
      this builder
      Since:
      2.3.0
    • modifiers

      @AsOf("2.3.0") public PlacedFeature.Builder modifiers(List<PlacementModifier> placements)
      Sets a list of placement modifiers to the list of modifiers.
      Parameters:
      placements - the placement modifiers to set
      Returns:
      this builder
      Since:
      2.3.0
    • feature

      @AsOf("3.0.0") public <C> PlacedFeature.Builder feature(CustomFeature<C> customFeature, C config)
      Sets the feature to be placed.
      Type Parameters:
      C - the config type
      Parameters:
      customFeature - the feature to be placed
      config - the config for the feature
      Returns:
      this builder
      Since:
      3.0.0
    • modifier

      @AsOf("3.0.0") public PlacedFeature.Builder modifier(PlacementModifier... placements)
      Adds placement modifiers to the list of modifiers.
      Parameters:
      placements - the placement modifiers to add
      Returns:
      this builder
      Since:
      3.0.0
    • modifier

      @AsOf("2.3.0") public PlacedFeature.Builder modifier(PlacementModifier placement)
      Adds a placement modifier to the list of modifiers.
      Parameters:
      placement - the placement modifier to add
      Returns:
      this builder
      Since:
      2.3.0
    • build

      @AsOf("2.3.0") public PlacedFeature.Composed build()
      Builds the placed feature.
      Returns:
      the placed feature
      Since:
      2.3.0