Interface ConcentricRingsPlacement
- All Superinterfaces:
StructurePlacement, Wrapper
Places
count() structures spread over rings expanding outward
from the world's center. Strongholds use this.- Since:
- 3.4.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface StructurePlacement
StructurePlacement.ExclusionZone -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.intcount()How many structures are placed in total.intdistance()The distance, in chunks, from the world center to the first ring.static ConcentricRingsPlacementCreates a new concentric-rings placement with vanilla's defaults for everything but the ring geometry and preferred biomes.static ConcentricRingsPlacementof(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.The biomes a ring position is snapped to, as an explicit set or a named biome tag.intspread()The spread, in chunks, of the positions within a ring.default ConcentricRingsPlacement.BuilderConverts this object back to a builder.Methods inherited from interface StructurePlacement
exclusionZone, frequency, frequencyReduction, locateOffset, saltMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
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
The spread, in chunks, of the positions within a ring.- Returns:
- the ring spread
- Since:
- 3.4.0
-
count
How many structures are placed in total.- Returns:
- the structure count
- Since:
- 3.4.0
-
preferredBiomes
-
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 ringspread- the spread, in chunks, of the positions within a ringcount- how many structures are placed in totalpreferredBiomes- the biomes a ring position is snapped tosalt- the salt mixed into the placement's random seedlocateOffset- the offset applied to a located positionfrequencyReduction- the reducer applied to the frequencyfrequency- the fraction of eligible chunks that receive the structureexclusionZone- 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 ringspread- the spread, in chunks, of the positions within a ringcount- how many structures are placed in totalpreferredBiomes- the biomes a ring position is snapped to- Returns:
- a new concentric-rings placement
- Since:
- 3.4.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.4.0
-