Class RootPlacer.RootPlacerBuilder<T,P>

java.lang.Object
dev.wyck.worldgen.feature.rootplacers.RootPlacer.RootPlacerBuilder<T,P>
Type Parameters:
T - the builder type
P - the root placer type
Direct Known Subclasses:
MangroveRootPlacer.Builder
Enclosing interface:
RootPlacer

@AsOf("3.0.0") public abstract static class RootPlacer.RootPlacerBuilder<T,P> extends Object
A builder for RootPlacers.
Since:
3.0.0
  • Field Details

  • Constructor Details

    • RootPlacerBuilder

      public RootPlacerBuilder()
    • RootPlacerBuilder

      public RootPlacerBuilder(RootPlacer rootPlacer)
  • Method Details

    • trunkOffsetY

      @AsOf("3.0.0") public T trunkOffsetY(IntProvider trunkOffsetY)
      Sets the offset perpendicular to the trunk.
      Parameters:
      trunkOffsetY - the trunk offset
      Returns:
      this builder
      Since:
      3.0.0
    • rootProvider

      @AsOf("3.0.0") public T rootProvider(BlockStateProvider rootProvider)
      Sets the block used as the root of the tree.
      Parameters:
      rootProvider - the root block state provider
      Returns:
      this builder
      Since:
      3.0.0
    • aboveRootPlacement

      @AsOf("3.0.0") public T aboveRootPlacement(AboveRootPlacement aboveRootPlacement)
      Sets the blocks above the root.
      Parameters:
      aboveRootPlacement - the above root placement
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public final P build()
      Builds the root placer.
      Returns:
      the root placer
      Since:
      3.0.0
    • create

      protected abstract P create()