Class RandomSpreadPlacement.Builder

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

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

  • Method Details

    • spacing

      @AsOf("3.4.0") public RandomSpreadPlacement.Builder spacing(int spacing)
      Sets the side length, in chunks, of the cell one structure is placed in.
      Parameters:
      spacing - the placement spacing
      Returns:
      this builder
      Since:
      3.4.0
    • separation

      @AsOf("3.4.0") public RandomSpreadPlacement.Builder separation(int separation)
      Sets the minimum distance, in chunks, between two structures of this set.
      Parameters:
      separation - the placement separation
      Returns:
      this builder
      Since:
      3.4.0
    • spreadType

      @AsOf("3.4.0") public RandomSpreadPlacement.Builder spreadType(RandomSpreadType spreadType)
      Sets how the candidate position is distributed inside its cell.
      Parameters:
      spreadType - the spread type
      Returns:
      this builder
      Since:
      3.4.0
    • salt

      @AsOf("3.4.0") public RandomSpreadPlacement.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 RandomSpreadPlacement.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 RandomSpreadPlacement.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 RandomSpreadPlacement.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 RandomSpreadPlacement.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 RandomSpreadPlacement build()
      Builds the random-spread placement.
      Returns:
      the random-spread placement
      Since:
      3.4.0