Class TreeFeature.Builder

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

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

    • Builder

      public Builder()
    • Builder

      public Builder(TreeFeature configuration)
  • Method Details

    • trunkProvider

      @AsOf("3.0.0") public TreeFeature.Builder trunkProvider(BlockStateProvider trunkProvider)
      Sets the trunk provider.
      Parameters:
      trunkProvider - the trunk provider
      Returns:
      this builder
      Since:
      3.0.0
    • trunkPlacer

      @AsOf("3.0.0") public TreeFeature.Builder trunkPlacer(TrunkPlacer trunkPlacer)
      Sets the trunk placer.
      Parameters:
      trunkPlacer - the trunk placer
      Returns:
      this builder
      Since:
      3.0.0
    • foliageProvider

      @AsOf("3.0.0") public TreeFeature.Builder foliageProvider(BlockStateProvider foliageProvider)
      Sets the foliage provider.
      Parameters:
      foliageProvider - the foliage provider
      Returns:
      this builder
      Since:
      3.0.0
    • foliagePlacer

      @AsOf("3.0.0") public TreeFeature.Builder foliagePlacer(FoliagePlacer foliagePlacer)
      Sets the foliage placer.
      Parameters:
      foliagePlacer - the foliage placer
      Returns:
      this builder
      Since:
      3.0.0
    • rootPlacer

      @AsOf("3.0.0") public TreeFeature.Builder rootPlacer(@Nullable RootPlacer rootPlacer)
      Sets the root placer.
      Parameters:
      rootPlacer - the root placer
      Returns:
      this builder
      Since:
      3.0.0
    • minimumSize

      @AsOf("3.0.0") public TreeFeature.Builder minimumSize(FeatureSize minimumSize)
      Sets the minimum size.
      Parameters:
      minimumSize - the minimum size
      Returns:
      this builder
      Since:
      3.0.0
    • decorators

      @AsOf("3.0.0") public TreeFeature.Builder decorators(List<TreeDecorator> decorators)
      Sets the decorators.
      Parameters:
      decorators - the decorators
      Returns:
      this builder
      Since:
      3.0.0
    • ignoreVines

      @AsOf("3.0.0") public TreeFeature.Builder ignoreVines(boolean ignoreVines)
      Sets whether to ignore vines.
      Parameters:
      ignoreVines - whether to ignore vines
      Returns:
      this builder
      Since:
      3.0.0
    • belowTrunkProvider

      @AsOf("3.0.0") public TreeFeature.Builder belowTrunkProvider(BlockStateProvider belowTrunkProvider)
      Sets the below trunk provider.
      Parameters:
      belowTrunkProvider - the below trunk provider
      Returns:
      this builder
      Since:
      3.0.0
    • decorator

      @AsOf("3.0.0") public TreeFeature.Builder decorator(TreeDecorator... decorators)
      Adds a decorator to the list of decorators.
      Parameters:
      decorators - the decorators to add
      Returns:
      this builder
      Since:
      3.0.0
    • ignoreVines

      @AsOf("3.0.0") public TreeFeature.Builder ignoreVines()
      Sets the tree to ignore vines.
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public TreeFeature build()
      Builds the tree configuration.
      Returns:
      the tree configuration
      Since:
      3.0.0