Interface StructurePlacement.Builder
- All Superinterfaces:
ResettableBuilder<StructurePlacement,
StructurePlacement.Builder>
- All Known Subinterfaces:
StructurePlacement.Builder.ConcentricRings
,StructurePlacement.Builder.RandomSpread
- Enclosing interface:
- StructurePlacement
public static interface StructurePlacement.Builder
extends ResettableBuilder<StructurePlacement,StructurePlacement.Builder>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the built structure placement.Starts building a concentric rings structure placement.concentricRings
(Vector3i locateOffset, int salt) Starts building a concentric rings structure placement.randomSpread
(int salt) Starts building a random spread structure placement.randomSpread
(Vector3i locateOffset, int salt) Starts building a random spread structure placement.Methods inherited from interface org.spongepowered.api.util.ResettableBuilder
reset
-
Method Details
-
randomSpread
Starts building a random spread structure placement.This type of placement is used for most vanilla
StructureSets
- Parameters:
locateOffset
- The locate offsetsalt
- The salt to assist randomization- Returns:
- This builder, for chaining
-
randomSpread
Starts building a random spread structure placement.This type of placement is used for most vanilla
StructureSets
- Parameters:
salt
- The salt to assist randomization- Returns:
- This builder, for chaining
-
concentricRings
Starts building a concentric rings structure placement.This type of placement is used for placing vanilla
StructureSets.STRONGHOLDS
- Parameters:
locateOffset
- The locate offsetsalt
- The salt to assist randomization- Returns:
- This builder, for chaining
-
concentricRings
StructurePlacement.Builder.ConcentricRings concentricRings()Starts building a concentric rings structure placement.- Returns:
- This builder, for chaining
-
build
StructurePlacement build()Returns the built structure placement.- Returns:
- The built structure placement
-