Interface ConcentricRingsPlacement

All Superinterfaces:
StructurePlacement, Wrapper

@NullMarked @AsOf("3.4.0") public interface ConcentricRingsPlacement extends StructurePlacement
Places count() structures spread over rings expanding outward from the world's center. Strongholds use this.
Since:
3.4.0
See Also:
  • Method Details

    • distance

      @AsOf("3.4.0") int distance()
      The distance, in chunks, from the world center to the first ring.
      Returns:
      the distance to the first ring
      Since:
      3.4.0
    • spread

      @AsOf("3.4.0") int spread()
      The spread, in chunks, of the positions within a ring.
      Returns:
      the ring spread
      Since:
      3.4.0
    • count

      @AsOf("3.4.0") int count()
      How many structures are placed in total.
      Returns:
      the structure count
      Since:
      3.4.0
    • preferredBiomes

      @AsOf("3.4.0") TagSet<Biome> preferredBiomes()
      The biomes a ring position is snapped to, as an explicit set or a named biome tag.
      Returns:
      the preferred biomes
      Since:
      3.4.0
    • toBuilder

      @AsOf("3.4.0") default ConcentricRingsPlacement.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.4.0
    • of

      @AsOf("3.4.0") static ConcentricRingsPlacement of(int distance, int spread, int count, TagSet<Biome> preferredBiomes, int salt, BlockVector locateOffset, FrequencyReduction frequencyReduction, float frequency, @Nullable StructurePlacement.ExclusionZone exclusionZone)
      Creates a new concentric-rings placement.
      Parameters:
      distance - the distance, in chunks, from the world center to the first ring
      spread - the spread, in chunks, of the positions within a ring
      count - how many structures are placed in total
      preferredBiomes - the biomes a ring position is snapped to
      salt - the salt mixed into the placement's random seed
      locateOffset - the offset applied to a located position
      frequencyReduction - the reducer applied to the frequency
      frequency - the fraction of eligible chunks that receive the structure
      exclusionZone - the zone around another structure set this placement avoids, or null
      Returns:
      a new concentric-rings placement
      Since:
      3.4.0
    • of

      @AsOf("3.4.0") static ConcentricRingsPlacement of(int distance, int spread, int count, TagSet<Biome> preferredBiomes)
      Creates a new concentric-rings placement with vanilla's defaults for everything but the ring geometry and preferred biomes.
      Parameters:
      distance - the distance, in chunks, from the world center to the first ring
      spread - the spread, in chunks, of the positions within a ring
      count - how many structures are placed in total
      preferredBiomes - the biomes a ring position is snapped to
      Returns:
      a new concentric-rings placement
      Since:
      3.4.0
    • builder

      @AsOf("3.4.0") static ConcentricRingsPlacement.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.4.0