Class AboveRootPlacement.Builder

java.lang.Object
dev.wyck.worldgen.feature.rootplacers.AboveRootPlacement.Builder
Enclosing interface:
AboveRootPlacement

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

    • Builder

      public Builder()
    • Builder

      public Builder(AboveRootPlacement aboveRootPlacement)
  • Method Details

    • aboveRootProvider

      @AsOf("3.0.0") public AboveRootPlacement.Builder aboveRootProvider(BlockStateProvider aboveRootProvider)
      Sets the block above the root.
      Parameters:
      aboveRootProvider - the above root block state provider
      Returns:
      this builder
      Since:
      3.0.0
    • aboveRootPlacementChance

      @AsOf("3.0.0") public AboveRootPlacement.Builder aboveRootPlacementChance(float aboveRootPlacementChance)
      Sets the probability of generating the block, between 0.0F and 1.0F (inclusive).
      Parameters:
      aboveRootPlacementChance - the above root placement chance
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public AboveRootPlacement build()
      Builds the above root placement.
      Returns:
      a new above root placement
      Since:
      3.0.0