Class RootSystemConfiguration.Builder

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

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

  • Method Details

    • treeFeature

      @AsOf("3.0.0") public RootSystemConfiguration.Builder treeFeature(PlacedFeature treeFeature)
      Sets the placed feature to place on top of the root system.
      Parameters:
      treeFeature - the placed feature to place on top of the root system
      Returns:
      this builder
      Since:
      3.0.0
    • requiredVerticalSpaceForTree

      @AsOf("3.0.0") public RootSystemConfiguration.Builder requiredVerticalSpaceForTree(int requiredVerticalSpaceForTree)
      Sets the amount of vertical space for the placed feature.
      Parameters:
      requiredVerticalSpaceForTree - the amount of vertical space for the placed feature
      Returns:
      this builder
      Since:
      3.0.0
    • levelTestDistance

      @AsOf("3.0.0") public RootSystemConfiguration.Builder levelTestDistance(int levelTestDistance)
      Sets the maximum level deviation.
      Parameters:
      levelTestDistance - the maximum level deviation
      Returns:
      this builder
      Since:
      3.0.0
    • maxLevelDeviation

      @AsOf("3.0.0") public RootSystemConfiguration.Builder maxLevelDeviation(int maxLevelDeviation)
      Sets the maximum level deviation.
      Parameters:
      maxLevelDeviation - the maximum level deviation
      Returns:
      this builder
      Since:
      3.0.0
    • rootRadius

      @AsOf("3.0.0") public RootSystemConfiguration.Builder rootRadius(int rootRadius)
      Sets the radius of which these roots can spread.
      Parameters:
      rootRadius - the radius of which these roots can spread
      Returns:
      this builder
      Since:
      3.0.0
    • rootReplaceable

      @AsOf("3.1.0") public RootSystemConfiguration.Builder rootReplaceable(Set<Material> rootReplaceable)
      Sets the tag of materials which can be replaced by the root system.
      Parameters:
      rootReplaceable - the tag of materials which can be replaced by the root system
      Returns:
      this builder
      Since:
      3.1.0
    • rootReplaceable

      @AsOf("3.1.0") public RootSystemConfiguration.Builder rootReplaceable(TagKey rootReplaceable)
      Sets the tag of materials which can be replaced by the root system.
      Parameters:
      rootReplaceable - the tag of materials which can be replaced by the root system
      Returns:
      this builder
      Since:
      3.1.0
    • rootStateProvider

      @AsOf("3.0.0") public RootSystemConfiguration.Builder rootStateProvider(BlockStateProvider rootStateProvider)
      Sets the block to use for the root column.
      Parameters:
      rootStateProvider - the block to use for the root column
      Returns:
      this builder
      Since:
      3.0.0
    • rootPlacementAttempts

      @AsOf("3.0.0") public RootSystemConfiguration.Builder rootPlacementAttempts(int rootPlacementAttempts)
      Sets the number of attempts to place the root column.
      Parameters:
      rootPlacementAttempts - the number of attempts to place the root column
      Returns:
      this builder
      Since:
      3.0.0
    • rootColumnMaxHeight

      @AsOf("3.0.0") public RootSystemConfiguration.Builder rootColumnMaxHeight(int rootColumnMaxHeight)
      Sets the maximum height of the root column.
      Parameters:
      rootColumnMaxHeight - the maximum height of the root column
      Returns:
      this builder
      Since:
      3.0.0
    • hangingRootRadius

      @AsOf("3.0.0") public RootSystemConfiguration.Builder hangingRootRadius(int hangingRootRadius)
      Sets the radius of the hanging roots.
      Parameters:
      hangingRootRadius - the radius of the hanging roots
      Returns:
      this builder
      Since:
      3.0.0
    • hangingRootsVerticalSpan

      @AsOf("3.0.0") public RootSystemConfiguration.Builder hangingRootsVerticalSpan(int hangingRootsVerticalSpan)
      Sets the vertical span of the hanging roots.
      Parameters:
      hangingRootsVerticalSpan - the vertical span of the hanging roots
      Returns:
      this builder
      Since:
      3.0.0
    • hangingRootStateProvider

      @AsOf("3.0.0") public RootSystemConfiguration.Builder hangingRootStateProvider(BlockStateProvider hangingRootStateProvider)
      Sets the block to use for the hanging roots.
      Parameters:
      hangingRootStateProvider - the block to use for the hanging roots
      Returns:
      this builder
      Since:
      3.0.0
    • hangingRootPlacementAttempts

      @AsOf("3.0.0") public RootSystemConfiguration.Builder hangingRootPlacementAttempts(int hangingRootPlacementAttempts)
      Sets the number of attempts to place the hanging roots.
      Parameters:
      hangingRootPlacementAttempts - the number of attempts to place the hanging roots
      Returns:
      this builder
      Since:
      3.0.0
    • allowedVerticalWaterForTree

      @AsOf("3.0.0") public RootSystemConfiguration.Builder allowedVerticalWaterForTree(int allowedVerticalWaterForTree)
      Sets the amount of vertical water allowed for the placed feature.
      Parameters:
      allowedVerticalWaterForTree - the amount of vertical water allowed for the placed feature
      Returns:
      this builder
      Since:
      3.0.0
    • allowedTreePosition

      @AsOf("3.0.0") public RootSystemConfiguration.Builder allowedTreePosition(BlockPredicate allowedTreePosition)
      Sets the block predicate used to check if the tree position is valid.
      Parameters:
      allowedTreePosition - the block predicate used to check if the tree position is valid
      Returns:
      this builder
      Since:
      3.0.0
    • rootReplaceable

      @AsOf("3.1.0") public RootSystemConfiguration.Builder rootReplaceable(Material... rootReplaceable)
      Adds a material to the root-replaceable list.
      Parameters:
      rootReplaceable - the material to add
      Returns:
      this builder
      Since:
      3.1.0
    • rootReplaceable

      @AsOf("3.1.0") public RootSystemConfiguration.Builder rootReplaceable(ResourceKey rootReplaceable)
      Adds a tag of materials to the root-replaceable list.
      Parameters:
      rootReplaceable - the tag of materials to add
      Returns:
      this builder
      Since:
      3.1.0
    • rootReplaceable

      @AsOf("3.1.0") public RootSystemConfiguration.Builder rootReplaceable(TagSet<Material> rootReplaceable)
      Adds a tag of materials to the root-replaceable list.
      Parameters:
      rootReplaceable - the tag of materials to add
      Returns:
      this builder
      Since:
      3.1.0
    • rootReplaceable

      @AsOf("3.1.0") public RootSystemConfiguration.Builder rootReplaceable(Tag<Material> rootReplaceable)
      Adds a tag of materials to the root-replaceable list.
      Parameters:
      rootReplaceable - the tag of materials to add
      Returns:
      this builder
      Since:
      3.1.0
    • build

      @AsOf("3.0.0") public RootSystemConfiguration build()
      Builds the root system configuration.
      Returns:
      the root system configuration
      Since:
      3.0.0