Class FallenTreeFeature.Builder

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

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

    • Builder

      public Builder()
    • Builder

      public Builder(FallenTreeFeature configuration)
  • Method Details

    • trunkProvider

      @AsOf("3.0.0") public FallenTreeFeature.Builder trunkProvider(BlockStateProvider trunkProvider)
      Sets the block state provider used for the trunk.
      Parameters:
      trunkProvider - the trunk provider
      Returns:
      this builder
      Since:
      3.0.0
    • logLength

      @AsOf("3.0.0") public FallenTreeFeature.Builder logLength(IntProvider logLength)
      Sets the length of the fallen log.
      Parameters:
      logLength - the log length
      Returns:
      this builder
      Since:
      3.0.0
    • stumpDecorators

      @AsOf("3.0.0") public FallenTreeFeature.Builder stumpDecorators(List<TreeDecorator> stumpDecorators)
      Sets the decorators applied to the stump, replacing any existing stump decorators.
      Parameters:
      stumpDecorators - the stump decorators
      Returns:
      this builder
      Since:
      3.0.0
    • logDecorators

      @AsOf("3.0.0") public FallenTreeFeature.Builder logDecorators(List<TreeDecorator> logDecorators)
      Sets the decorators applied to the fallen log, replacing any existing log decorators.
      Parameters:
      logDecorators - the log decorators
      Returns:
      this builder
      Since:
      3.0.0
    • stumpDecorator

      @AsOf("3.0.0") public FallenTreeFeature.Builder stumpDecorator(TreeDecorator... decorators)
      Adds one or more decorators to the stump.
      Parameters:
      decorators - the stump decorators to add
      Returns:
      this builder
      Since:
      3.0.0
    • logDecorator

      @AsOf("3.0.0") public FallenTreeFeature.Builder logDecorator(TreeDecorator... decorators)
      Adds one or more decorators to the fallen log.
      Parameters:
      decorators - the log decorators to add
      Returns:
      this builder
      Since:
      3.0.0
    • build

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