Class VegetationPatchConfiguration.Builder

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

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

  • Method Details

    • replaceable

      @AsOf("3.1.0") public VegetationPatchConfiguration.Builder replaceable(Set<Material> replaceable)
      Sets the blocks that the patch is allowed to replace.
      Parameters:
      replaceable - the replaceable materials
      Returns:
      this builder
      Since:
      3.1.0
    • replaceable

      @AsOf("3.1.0") public VegetationPatchConfiguration.Builder replaceable(TagKey replaceable)
      Sets the blocks that the patch is allowed to replace.
      Parameters:
      replaceable - the replaceable materials
      Returns:
      this builder
      Since:
      3.1.0
    • groundState

      @AsOf("3.0.1") public VegetationPatchConfiguration.Builder groundState(BlockStateProvider groundState)
      Sets the block used to build the patch.
      Parameters:
      groundState - the ground state provider
      Returns:
      this builder
      Since:
      3.0.1
    • vegetationFeature

      @AsOf("3.0.1") public VegetationPatchConfiguration.Builder vegetationFeature(PlacedFeature vegetationFeature)
      Sets the placed feature to place on top of each found position.
      Parameters:
      vegetationFeature - the vegetation feature
      Returns:
      this builder
      Since:
      3.0.1
    • surface

      @AsOf("3.0.1") public VegetationPatchConfiguration.Builder surface(CaveSurface surface)
      Sets which surface to search from and place against.
      Parameters:
      surface - the surface
      Returns:
      this builder
      Since:
      3.0.1
    • depth

      Sets the number of blocks the patch replaces per column.
      Parameters:
      depth - the depth, between 1 and 128
      Returns:
      this builder
      Since:
      3.0.1
    • extraBottomBlockChance

      @AsOf("3.0.1") public VegetationPatchConfiguration.Builder extraBottomBlockChance(float extraBottomBlockChance)
      Sets the chance to add one extra block to the depth of a column.
      Parameters:
      extraBottomBlockChance - the extra bottom block chance, between 0.0 and 1.0
      Returns:
      this builder
      Since:
      3.0.1
    • verticalRange

      @AsOf("3.0.1") public VegetationPatchConfiguration.Builder verticalRange(int verticalRange)
      Sets the vertical distance a column searches for an available position.
      Parameters:
      verticalRange - the vertical range, between 1 and 256
      Returns:
      this builder
      Since:
      3.0.1
    • vegetationChance

      @AsOf("3.0.1") public VegetationPatchConfiguration.Builder vegetationChance(float vegetationChance)
      Sets the chance of placing the vegetation feature on a found position.
      Parameters:
      vegetationChance - the vegetation chance, between 0.0 and 1.0
      Returns:
      this builder
      Since:
      3.0.1
    • xzRadius

      @AsOf("3.0.1") public VegetationPatchConfiguration.Builder xzRadius(IntProvider xzRadius)
      Sets the XZ radius searched for available positions.
      Parameters:
      xzRadius - the xz radius
      Returns:
      this builder
      Since:
      3.0.1
    • extraEdgeColumnChance

      @AsOf("3.0.1") public VegetationPatchConfiguration.Builder extraEdgeColumnChance(float extraEdgeColumnChance)
      Sets the chance to add a search position adjacent to the initial rectangle.
      Parameters:
      extraEdgeColumnChance - the extra edge column chance, between 0.0 and 1.0
      Returns:
      this builder
      Since:
      3.0.1
    • replaceable

      @AsOf("3.1.0") public VegetationPatchConfiguration.Builder replaceable(Material... replaceable)
      Adds materials to the replaceable set.
      Parameters:
      replaceable - the materials to add
      Returns:
      this builder
      Since:
      3.1.0
    • replaceable

      @AsOf("3.1.0") public VegetationPatchConfiguration.Builder replaceable(ResourceKey replaceable)
      Sets a block tag of blocks that the patch is allowed to replace.
      Parameters:
      replaceable - the replaceable tag
      Returns:
      this builder
      Since:
      3.1.0
    • replaceable

      @AsOf("3.1.0") public VegetationPatchConfiguration.Builder replaceable(TagSet<Material> replaceable)
      Sets a block tag of blocks that the patch is allowed to replace.
      Parameters:
      replaceable - the replaceable tag
      Returns:
      this builder
      Since:
      3.1.0
    • replaceable

      @AsOf("3.1.0") public VegetationPatchConfiguration.Builder replaceable(Tag<Material> replaceable)
      Sets a block tag of blocks that the patch is allowed to replace.
      Parameters:
      replaceable - the replaceable tag
      Returns:
      this builder
      Since:
      3.1.0
    • build

      @AsOf("3.0.1") public VegetationPatchConfiguration build()
      Builds the vegetation patch configuration.
      Returns:
      the vegetation patch configuration
      Since:
      3.0.1