Class ConcentricRingsPlacement.Builder
java.lang.Object
dev.wyck.worldgen.structure.placement.ConcentricRingsPlacement.Builder
- Enclosing interface:
ConcentricRingsPlacement
Builder for
ConcentricRingsPlacement.- Since:
- 3.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the concentric-rings placement.count(int count) Sets how many structures are placed in total.distance(int distance) Sets the distance, in chunks, from the world center to the first ring.exclusionZone(StructurePlacement.ExclusionZone exclusionZone) Sets the zone around another structure set this placement avoids.frequency(float frequency) Sets the fraction of eligible chunks that receive the structure.frequencyReduction(FrequencyReduction frequencyReduction) Sets the reducer applied to the frequency.locateOffset(BlockVector locateOffset) Sets the offset applied to a located position.preferredBiomes(TagSet<Biome> preferredBiomes) Sets the biomes a ring position is snapped to.salt(int salt) Sets the salt mixed into the placement's random seed.spread(int spread) Sets the spread, in chunks, of the positions within a ring.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
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
Sets the spread, in chunks, of the positions within a ring.- Parameters:
spread- the ring spread- Returns:
- this builder
- Since:
- 3.4.0
-
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
Sets the salt mixed into the placement's random seed.- Parameters:
salt- the placement salt- Returns:
- this builder
- Since:
- 3.4.0
-
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
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
Builds the concentric-rings placement.- Returns:
- the concentric-rings placement
- Since:
- 3.4.0
-