Class FoliagePlacer.FoliagePlacerBuilder<T,P>

java.lang.Object
dev.wyck.worldgen.feature.foliageplacers.FoliagePlacer.FoliagePlacerBuilder<T,P>
Type Parameters:
T - the builder type
P - the foliage placer type
Direct Known Subclasses:
AcaciaFoliagePlacer.Builder, BlobFoliagePlacer.Builder, BushFoliagePlacer.Builder, CherryFoliagePlacer.Builder, DarkOakFoliagePlacer.Builder, FancyFoliagePlacer.Builder, MegaJungleFoliagePlacer.Builder, MegaPineFoliagePlacer.Builder, PineFoliagePlacer.Builder, RandomSpreadFoliagePlacer.Builder, SpruceFoliagePlacer.Builder
Enclosing interface:
FoliagePlacer

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

  • Constructor Details

    • FoliagePlacerBuilder

      public FoliagePlacerBuilder()
    • FoliagePlacerBuilder

      public FoliagePlacerBuilder(FoliagePlacer foliagePlacer)
  • Method Details

    • radius

      @AsOf("3.0.0") public T radius(IntProvider radius)
      Sets the radius of the foliage.
      Parameters:
      radius - the radius
      Returns:
      this builder
      Since:
      3.0.0
    • offset

      @AsOf("3.0.0") public T offset(IntProvider offset)
      Sets the vertical offset from the top of the trunk to the top of the foliage.
      Parameters:
      offset - the offset
      Returns:
      this builder
      Since:
      3.0.0
    • build

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

      protected abstract P create()