Class ComposedStructureSet.Builder
java.lang.Object
dev.wyck.worldgen.structure.types.ComposedStructureSet.Builder
- Enclosing interface:
ComposedStructureSet
Builder for
ComposedStructureSet.- Since:
- 3.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the composed structure set.placement(StructurePlacement placement) Sets how this set spreads its structures.resourceKey(ResourceKey resourceKey) Sets the resource key of the structure set.Adds a structure to this set with a weight of 1.Adds a structure to this set with the given weight.structures(List<StructureSet.Entry> structures) Sets the weighted structures in this set.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
resourceKey
Sets the resource key of the structure set.- Parameters:
resourceKey- the resource key of the structure set- Returns:
- this builder
- Since:
- 3.4.0
-
structures
Sets the weighted structures in this set.- Parameters:
structures- the entries of this set- Returns:
- this builder
- Since:
- 3.4.0
-
placement
Sets how this set spreads its structures.- Parameters:
placement- the placement of this set- Returns:
- this builder
- Since:
- 3.4.0
-
structure
Adds a structure to this set with a weight of 1.- Parameters:
structure- the structure to add- Returns:
- this builder
- Since:
- 3.4.0
-
structure
Adds a structure to this set with the given weight.- Parameters:
structure- the structure to addweight- the weight the structure is chosen by- Returns:
- this builder
- Since:
- 3.4.0
-
build
Builds the composed structure set.- Returns:
- the composed structure set
- Since:
- 3.4.0
-