Class MultifaceGrowthFeature.Builder

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

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

  • Method Details

    • placeBlock

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder placeBlock(Material placeBlock)
      Sets the block to place.
      Parameters:
      placeBlock - the block to place
      Returns:
      this builder
      Since:
      3.0.0
    • searchRange

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder searchRange(int searchRange)
      Sets the search range.
      Parameters:
      searchRange - the search range
      Returns:
      this builder
      Since:
      3.0.0
    • canPlaceOnFloor

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder canPlaceOnFloor(boolean canPlaceOnFloor)
      Sets whether the block can be placed on the floor.
      Parameters:
      canPlaceOnFloor - whether the block can be placed on the floor
      Returns:
      this builder
      Since:
      3.0.0
    • canPlaceOnCeiling

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder canPlaceOnCeiling(boolean canPlaceOnCeiling)
      Sets whether the block can be placed on the ceiling.
      Parameters:
      canPlaceOnCeiling - whether the block can be placed on the ceiling
      Returns:
      this builder
      Since:
      3.0.0
    • canPlaceOnWall

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder canPlaceOnWall(boolean canPlaceOnWall)
      Sets whether the block can be placed on the wall.
      Parameters:
      canPlaceOnWall - whether the block can be placed on the wall
      Returns:
      this builder
      Since:
      3.0.0
    • chanceOfSpreading

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder chanceOfSpreading(float chanceOfSpreading)
      Sets the chance of the block spreading.
      Parameters:
      chanceOfSpreading - the chance of the block spreading
      Returns:
      this builder
      Since:
      3.0.0
    • canBePlacedOn

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder canBePlacedOn(Set<Material> canBePlacedOn)
      Sets the materials that the block can be placed on.
      Parameters:
      canBePlacedOn - the materials that the block can be placed on
      Returns:
      this builder
      Since:
      3.0.0
    • canPlaceOnFloor

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder canPlaceOnFloor()
      Allows the block to be placed on the floor.
      Returns:
      this builder
      Since:
      3.0.0
    • canPlaceOnCeiling

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder canPlaceOnCeiling()
      Allows the block to be placed on the ceiling.
      Returns:
      this builder
      Since:
      3.0.0
    • canPlaceOnWall

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder canPlaceOnWall()
      Allows the block to be placed on the wall.
      Returns:
      this builder
      Since:
      3.0.0
    • canBePlacedOn

      @AsOf("3.0.0") public MultifaceGrowthFeature.Builder canBePlacedOn(Material... canBePlacedOn)
      Adds materials to the set of materials that the block can be placed on.
      Parameters:
      canBePlacedOn - the materials to add
      Returns:
      this builder
      Since:
      3.0.0
    • build

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