Class ConcentricRingsPlacement.Builder

java.lang.Object
dev.wyck.worldgen.structure.placement.ConcentricRingsPlacement.Builder
Enclosing interface:
ConcentricRingsPlacement

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

  • Method Details

    • distance

      @AsOf("3.4.0") public ConcentricRingsPlacement.Builder distance(int distance)
      Sets the distance, in chunks, from the world center to the first ring.
      Parameters:
      distance - the distance to the first ring
      Returns:
      this builder
      Since:
      3.4.0
    • spread

      @AsOf("3.4.0") public ConcentricRingsPlacement.Builder spread(int spread)
      Sets the spread, in chunks, of the positions within a ring.
      Parameters:
      spread - the ring spread
      Returns:
      this builder
      Since:
      3.4.0
    • count

      @AsOf("3.4.0") public ConcentricRingsPlacement.Builder count(int count)
      Sets how many structures are placed in total.
      Parameters:
      count - the structure count
      Returns:
      this builder
      Since:
      3.4.0
    • preferredBiomes

      @AsOf("3.4.0") public ConcentricRingsPlacement.Builder preferredBiomes(TagSet<Biome> preferredBiomes)
      Sets the biomes a ring position is snapped to.
      Parameters:
      preferredBiomes - the preferred biomes
      Returns:
      this builder
      Since:
      3.4.0
    • salt

      @AsOf("3.4.0") public ConcentricRingsPlacement.Builder salt(int salt)
      Sets the salt mixed into the placement's random seed.
      Parameters:
      salt - the placement salt
      Returns:
      this builder
      Since:
      3.4.0
    • locateOffset

      @AsOf("3.4.0") public ConcentricRingsPlacement.Builder locateOffset(BlockVector locateOffset)
      Sets the offset applied to a located position.
      Parameters:
      locateOffset - the locate offset
      Returns:
      this builder
      Since:
      3.4.0
    • frequencyReduction

      @AsOf("3.4.0") public ConcentricRingsPlacement.Builder frequencyReduction(FrequencyReduction frequencyReduction)
      Sets the reducer applied to the frequency.
      Parameters:
      frequencyReduction - the frequency reduction method
      Returns:
      this builder
      Since:
      3.4.0
    • frequency

      @AsOf("3.4.0") public ConcentricRingsPlacement.Builder frequency(float frequency)
      Sets the fraction of eligible chunks that receive the structure.
      Parameters:
      frequency - the placement frequency
      Returns:
      this builder
      Since:
      3.4.0
    • exclusionZone

      @AsOf("3.4.0") public ConcentricRingsPlacement.Builder exclusionZone(StructurePlacement.ExclusionZone exclusionZone)
      Sets the zone around another structure set this placement avoids.
      Parameters:
      exclusionZone - the exclusion zone
      Returns:
      this builder
      Since:
      3.4.0
    • build

      @AsOf("3.4.0") public ConcentricRingsPlacement build()
      Builds the concentric-rings placement.
      Returns:
      the concentric-rings placement
      Since:
      3.4.0