Class JigsawStructure.Builder
java.lang.Object
dev.wyck.worldgen.structure.types.JigsawStructure.Builder
- Enclosing interface:
JigsawStructure
Builder for
JigsawStructure.- Since:
- 3.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(StructureSettings settings, TemplatePool startPool) Builder(JigsawStructure structure) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the jigsaw structure.dimensionPadding(DimensionPadding dimensionPadding) Sets the clearance kept from the bottom and top of the dimension.liquidSettings(LiquidSettings liquidSettings) Sets whether pieces landing in water are waterlogged.maxDistanceFromCenter(JigsawStructure.MaxDistance maxDistanceFromCenter) Sets the furthest pieces may be placed from the start.poolAlias(PoolAliasBinding poolAlias) Adds a pool alias binding.poolAliases(List<PoolAliasBinding> poolAliases) Sets the pool aliases resolved once per structure.projectStartToHeightmap(HeightmapType projectStartToHeightmap) Sets the heightmap the start height is measured from.resourceKey(ResourceKey resourceKey) Sets the resource key of the structure.settings(StructureSettings settings) Sets the settings every structure carries.size(int size) Sets how many jigsaw steps the structure grows from its start piece.startHeight(HeightProvider startHeight) Sets the height the start piece is placed at.startJigsawName(ResourceKey startJigsawName) Sets the jigsaw block in the start piece anchored to the structure's position.startPool(TemplatePool startPool) Sets the pool the first piece is drawn from.useExpansionHack(boolean useExpansionHack) Sets whether vanilla's village expansion hack is used.
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
resourceKey
Sets the resource key of the structure.- Parameters:
resourceKey- the resource key of the structure- Returns:
- this builder
- Since:
- 3.4.0
-
settings
Sets the settings every structure carries.- Parameters:
settings- the settings of the structure- Returns:
- this builder
- Since:
- 3.4.0
-
startPool
Sets the pool the first piece is drawn from.- Parameters:
startPool- the start pool- Returns:
- this builder
- Since:
- 3.4.0
-
startJigsawName
Sets the jigsaw block in the start piece anchored to the structure's position.- Parameters:
startJigsawName- the start jigsaw name- Returns:
- this builder
- Since:
- 3.4.0
-
size
Sets how many jigsaw steps the structure grows from its start piece.- Parameters:
size- the maximum depth- Returns:
- this builder
- Since:
- 3.4.0
-
startHeight
Sets the height the start piece is placed at.- Parameters:
startHeight- the start height- Returns:
- this builder
- Since:
- 3.4.0
-
useExpansionHack
Sets whether vanilla's village expansion hack is used.- Parameters:
useExpansionHack- whether the expansion hack is used- Returns:
- this builder
- Since:
- 3.4.0
-
projectStartToHeightmap
@AsOf("3.4.0") public JigsawStructure.Builder projectStartToHeightmap(HeightmapType projectStartToHeightmap) Sets the heightmap the start height is measured from.- Parameters:
projectStartToHeightmap- the heightmap- Returns:
- this builder
- Since:
- 3.4.0
-
maxDistanceFromCenter
@AsOf("3.4.0") public JigsawStructure.Builder maxDistanceFromCenter(JigsawStructure.MaxDistance maxDistanceFromCenter) Sets the furthest pieces may be placed from the start.- Parameters:
maxDistanceFromCenter- the maximum distance from the center- Returns:
- this builder
- Since:
- 3.4.0
-
poolAliases
Sets the pool aliases resolved once per structure.- Parameters:
poolAliases- the pool alias bindings- Returns:
- this builder
- Since:
- 3.4.0
-
dimensionPadding
Sets the clearance kept from the bottom and top of the dimension.- Parameters:
dimensionPadding- the dimension padding- Returns:
- this builder
- Since:
- 3.4.0
-
liquidSettings
Sets whether pieces landing in water are waterlogged.- Parameters:
liquidSettings- the liquid settings- Returns:
- this builder
- Since:
- 3.4.0
-
poolAlias
Adds a pool alias binding.- Parameters:
poolAlias- the binding to add- Returns:
- this builder
- Since:
- 3.4.0
-
build
Builds the jigsaw structure.- Returns:
- the jigsaw structure
- Since:
- 3.4.0
-