Class CherryFoliagePlacer.Builder

Enclosing interface:
CherryFoliagePlacer

@AsOf("3.0.0") public static final class CherryFoliagePlacer.Builder extends FoliagePlacer.FoliagePlacerBuilder<CherryFoliagePlacer.Builder, CherryFoliagePlacer>
Builder for CherryFoliagePlacer.
Since:
3.0.0
  • Constructor Details

  • Method Details

    • height

      @AsOf("3.0.0") public CherryFoliagePlacer.Builder height(IntProvider height)
      Sets the foliage's height, between 4 and 16 (inclusive).
      Parameters:
      height - the height
      Returns:
      this builder
      Since:
      3.0.0
    • wideBottomLayerHoleChance

      @AsOf("3.0.0") public CherryFoliagePlacer.Builder wideBottomLayerHoleChance(float wideBottomLayerHoleChance)
      Sets the probability of a hole in the wide bottom layer, between 0.0F and 1.0F (inclusive).
      Parameters:
      wideBottomLayerHoleChance - the wide bottom layer hole chance
      Returns:
      this builder
      Since:
      3.0.0
    • cornerHoleChance

      @AsOf("3.0.0") public CherryFoliagePlacer.Builder cornerHoleChance(float cornerHoleChance)
      Sets the probability of a hole in the corners, between 0.0F and 1.0F (inclusive).
      Parameters:
      cornerHoleChance - the corner hole chance
      Returns:
      this builder
      Since:
      3.0.0
    • hangingLeavesChance

      @AsOf("3.0.0") public CherryFoliagePlacer.Builder hangingLeavesChance(float hangingLeavesChance)
      Sets the probability of generating hanging leaves, between 0.0F and 1.0F (inclusive).
      Parameters:
      hangingLeavesChance - the hanging leaves chance
      Returns:
      this builder
      Since:
      3.0.0
    • hangingLeavesExtensionChance

      @AsOf("3.0.0") public CherryFoliagePlacer.Builder hangingLeavesExtensionChance(float hangingLeavesExtensionChance)
      Sets the probability of extending hanging leaves, between 0.0F and 1.0F (inclusive).
      Parameters:
      hangingLeavesExtensionChance - the hanging leaves extension chance
      Returns:
      this builder
      Since:
      3.0.0
    • create