Interface StructurePlacement.Builder.RandomSpread
- All Superinterfaces:
ResettableBuilder<StructurePlacement,
,StructurePlacement.Builder> StructurePlacement.Builder
- Enclosing interface:
StructurePlacement.Builder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.world.generation.structure.StructurePlacement.Builder
StructurePlacement.Builder.ConcentricRings, StructurePlacement.Builder.RandomSpread
-
Method Summary
Modifier and TypeMethodDescriptionlinear()
Sets the type of random spread.separation
(int separation) The minimum separation distance.spacing
(int spacing) Sets the spacing.Sets the type of random spread.Methods inherited from interface org.spongepowered.api.util.ResettableBuilder
reset
Methods inherited from interface org.spongepowered.api.world.generation.structure.StructurePlacement.Builder
build, concentricRings, concentricRings, randomSpread, randomSpread
-
Method Details
-
linear
Sets the type of random spread.- Returns:
- This builder, for chaining
-
triangular
StructurePlacement.Builder.RandomSpread triangular()Sets the type of random spread.- Returns:
- This builder, for chaining
-
spacing
Sets the spacing.- Parameters:
spacing
- The spacing in chunks- Returns:
- This builder, for chaining
-
separation
The minimum separation distance.Must be less than spacing
- Parameters:
separation
- The minimum separation distance in chunks- Returns:
- This builder, for chaining
-