Class MangroveRootPlacement.Builder

java.lang.Object
dev.wyck.worldgen.feature.rootplacers.MangroveRootPlacement.Builder
Enclosing interface:
MangroveRootPlacement

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

    • canGrowThrough

      @AsOf("3.0.0") public MangroveRootPlacement.Builder canGrowThrough(Set<Material> canGrowThrough)
      Sets the blocks that roots can grow through.
      Parameters:
      canGrowThrough - the blocks roots can grow through
      Returns:
      this builder
      Since:
      3.0.0
    • muddyRootsIn

      @AsOf("3.0.0") public MangroveRootPlacement.Builder muddyRootsIn(Set<Material> muddyRootsIn)
      Sets the blocks in which roots turn into muddy root blocks.
      Parameters:
      muddyRootsIn - the blocks that turn roots muddy
      Returns:
      this builder
      Since:
      3.0.0
    • muddyRootsProvider

      @AsOf("3.0.0") public MangroveRootPlacement.Builder muddyRootsProvider(BlockStateProvider muddyRootsProvider)
      Sets the blocks used as muddy roots.
      Parameters:
      muddyRootsProvider - the muddy roots block state provider
      Returns:
      this builder
      Since:
      3.0.0
    • maxRootWidth

      @AsOf("3.0.0") public MangroveRootPlacement.Builder maxRootWidth(int maxRootWidth)
      Sets the maximum width of the root, between 1 and 12 (inclusive).
      Parameters:
      maxRootWidth - the maximum root width
      Returns:
      this builder
      Since:
      3.0.0
    • maxRootLength

      @AsOf("3.0.0") public MangroveRootPlacement.Builder maxRootLength(int maxRootLength)
      Sets the maximum length of the root, between 1 and 64 (inclusive).
      Parameters:
      maxRootLength - the maximum root length
      Returns:
      this builder
      Since:
      3.0.0
    • randomSkewChance

      @AsOf("3.0.0") public MangroveRootPlacement.Builder randomSkewChance(float randomSkewChance)
      Sets the probability of random skew, between 0.0F and 1.0F (inclusive).
      Parameters:
      randomSkewChance - the random skew chance
      Returns:
      this builder
      Since:
      3.0.0
    • canGrowThrough

      @AsOf("3.0.0") public MangroveRootPlacement.Builder canGrowThrough(Material... canGrowThrough)
      Adds one or more blocks that roots can grow through.
      Parameters:
      canGrowThrough - the blocks to add
      Returns:
      this builder
      Since:
      3.0.0
    • muddyRootsIn

      @AsOf("3.0.0") public MangroveRootPlacement.Builder muddyRootsIn(Material... muddyRootsIn)
      Adds one or more blocks in which roots turn into muddy root blocks.
      Parameters:
      muddyRootsIn - the blocks to add
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public MangroveRootPlacement build()
      Builds the mangrove root placement.
      Returns:
      a new mangrove root placement
      Since:
      3.0.0