Class MultifaceGrowthConfiguration.Builder

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

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

  • Method Details

    • placeBlock

      @AsOf("3.0.0") public MultifaceGrowthConfiguration.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 MultifaceGrowthConfiguration.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 MultifaceGrowthConfiguration.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 MultifaceGrowthConfiguration.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 MultifaceGrowthConfiguration.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 MultifaceGrowthConfiguration.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 MultifaceGrowthConfiguration.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 MultifaceGrowthConfiguration.Builder canPlaceOnFloor()
      Allows the block to be placed on the floor.
      Returns:
      this builder
      Since:
      3.0.0
    • canPlaceOnCeiling

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

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

      @AsOf("3.0.0") public MultifaceGrowthConfiguration.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 MultifaceGrowthConfiguration build()
      Builds the configuration.
      Returns:
      the configuration
      Since:
      3.0.0