Interface RandomSpreadPlacement
- All Superinterfaces:
StructurePlacement, Wrapper
The world is cut into
spacing-chunk
cells and one candidate position is picked within the first spacing - separation chunks
of each.- 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.static RandomSpreadPlacementof(int spacing, int separation, int salt) Creates a new random-spread placement with vanilla's defaults for everything but spacing, separation and salt.static RandomSpreadPlacementof(int spacing, int separation, RandomSpreadType spreadType, int salt, BlockVector locateOffset, FrequencyReduction frequencyReduction, float frequency, @Nullable StructurePlacement.ExclusionZone exclusionZone) Creates a new random-spread placement.intThe minimum distance, in chunks, between two structures of this set.intspacing()The side length, in chunks, of the cell one structure is placed in.How the candidate position is distributed inside its cell.default RandomSpreadPlacement.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
-
spacing
The side length, in chunks, of the cell one structure is placed in.- Returns:
- the placement spacing
- Since:
- 3.4.0
-
separation
The minimum distance, in chunks, between two structures of this set.- Returns:
- the placement separation
- Since:
- 3.4.0
-
spreadType
How the candidate position is distributed inside its cell.- Returns:
- the spread type
- Since:
- 3.4.0
-
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 RandomSpreadPlacement of(int spacing, int separation, RandomSpreadType spreadType, int salt, BlockVector locateOffset, FrequencyReduction frequencyReduction, float frequency, @Nullable StructurePlacement.ExclusionZone exclusionZone) Creates a new random-spread placement.- Parameters:
spacing- the side length, in chunks, of the cell one structure is placed inseparation- the minimum distance, in chunks, between two structures of this setspreadType- how the candidate position is distributed inside its cellsalt- 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 random-spread placement
- Since:
- 3.4.0
-
of
Creates a new random-spread placement with vanilla's defaults for everything but spacing, separation and salt.- Parameters:
spacing- the side length, in chunks, of the cell one structure is placed inseparation- the minimum distance, in chunks, between two structures of this setsalt- the salt mixed into the placement's random seed- Returns:
- a new random-spread placement
- Since:
- 3.4.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.4.0
-